Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capitalization issue in Windows package (wix) #235

Merged
merged 1 commit into from
Aug 20, 2018
Merged

Capitalization issue in Windows package (wix) #235

merged 1 commit into from
Aug 20, 2018

Conversation

tyler-ball
Copy link
Contributor

@tyler-ball tyler-ball commented Aug 17, 2018

Description

Fixes it

Issues Resolved

N/A

Check List

  • PR title is a worthy inclusion in the CHANGELOG
  • You have locally validated the change
  • www/site/content/docs/ has been updated with any relevant changes:
      • new or changed error messages in 'troubleshooting.md'
      • new or changed CLI flags in cli-reference.md

Signed-off-by: tyler-ball tball@chef.io

@tyler-ball tyler-ball requested review from stuartpreston and a team August 17, 2018 15:35
@stuartpreston
Copy link

Yes, these directories need to be public properties (uppercase) - so this is one way to fix it but it will generate an ICE99 warning at compile time.

I checked in Omnibus and we seem to ignore any warnings being generated (would give a return code of 204) - see https://github.com/chef/omnibus/blob/7ac8251d5025dce1f93c3da85b52f55c6a9b94ec/lib/omnibus/packagers/msi.rb#L71

So, whilst this is a valid fix I think a better fix (avoiding warnings) that should be applied here and in ChefDK would be something like:

  <SetDirectory Id="WINDOWSVOLUME" Value="[WindowsVolume]"/>
  <Directory Id="TARGETDIR" Name="SourceDir">
    <Directory Id="WINDOWSVOLUME">
  ...

(ref: http://kentie.net/article/wixtipstricks/)

Signed-off-by: tyler-ball <tball@chef.io>
@tyler-ball
Copy link
Contributor Author

@stuartpreston Updated!

@tyler-ball tyler-ball merged commit bafbefc into master Aug 20, 2018
@tyler-ball tyler-ball deleted the wix branch August 20, 2018 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants