-
Notifications
You must be signed in to change notification settings - Fork 112
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
customize windows install for this product #28
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
54c24b0
customize windows install for this product
marcparadise bcda7a9
Non-windows: require fileutils to prevent errors in config.rb
marcparadise dd3f44d
Update parser dep, old one was pulled
marcparadise 9ee504d
Code review comments: windows install
marcparadise File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
require "mixlib/config" | ||
require "fileutils" | ||
require "pathname" | ||
|
||
module ChefWorkstation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> | ||
|
||
<!-- This is how we include wxi files --> | ||
<?include "parameters.wxi" ?> | ||
|
||
<!-- | ||
Id="*" is to enable upgrading. * means that the product ID will be autogenerated on each build. | ||
Name is made of localized product name and version number. | ||
--> | ||
<Product Id="*" Name="!(loc.ProductName) v$(var.DisplayVersionNumber)" Language="!(loc.LANG)" | ||
Version="$(var.VersionNumber)" Manufacturer="!(loc.ManufacturerName)" UpgradeCode="$(var.UpgradeCode)"> | ||
<Package InstallerVersion="200" InstallPrivileges="elevated" | ||
Compressed="yes" InstallScope="perMachine" /> | ||
|
||
<Media Id="1" Cabinet="ChefWorkstation.cab" EmbedCab="yes" CompressionLevel="high" /> | ||
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeErrorMessage)" /> | ||
|
||
<!-- | ||
If fastmsi is set, custom actions will be invoked during install to unzip | ||
project files, and during uninstall to remove the project folder | ||
--> | ||
<% if fastmsi %> | ||
<SetProperty Id="FastUnzip" | ||
Value="FASTZIPDIR=[INSTALLLOCATION];FASTZIPAPPNAME=chef-workstation" | ||
Sequence="execute" | ||
Before="FastUnzip" /> | ||
|
||
<CustomAction Id="FastUnzip" | ||
BinaryKey="CustomActionFastMsiDLL" | ||
DllEntry="FastUnzip" | ||
Execute="deferred" | ||
Impersonate="no" | ||
Return="check" /> | ||
|
||
<Binary Id="CustomActionFastMsiDLL" | ||
SourceFile="CustomActionFastMsi.CA.dll" /> | ||
|
||
<CustomAction Id="Cleanup" | ||
Directory="INSTALLLOCATION" | ||
ExeCommand="cmd /C "rd /S /Q chef-workstation"" | ||
Execute="deferred" | ||
Impersonate="no" | ||
Return="ignore" /> | ||
|
||
<InstallExecuteSequence> | ||
<Custom Action="FastUnzip" After="InstallFiles">NOT Installed</Custom> | ||
<Custom Action="Cleanup" After="RemoveFiles">REMOVE~="ALL"</Custom> | ||
</InstallExecuteSequence> | ||
|
||
<UI> | ||
<ProgressText Action="FastUnzip">!(loc.FileExtractionProgress)</ProgressText> | ||
</UI> | ||
<% end %> | ||
|
||
<CustomActionRef Id="WixBroadcastSettingChange" /> | ||
<CustomActionRef Id="WixBroadcastEnvironmentChange" /> | ||
|
||
<Directory Id="TARGETDIR" Name="SourceDir"> | ||
<Directory Id="WINDOWSVOLUME"> | ||
<Directory Id="INSTALLLOCATION" Name="opscode"> | ||
<Directory Id="PROJECTLOCATION" Name="chef-workstation"> | ||
<Directory Id="PROJECTLOCATIONBIN" Name="bin"> | ||
<Component Id="ChefWorkstationPath" Guid="{BC744260-FD5B-4A0F-8EE5-76283072CC09}" > | ||
<Environment Id="Environment" | ||
Name="PATH" Action="set" Part="last" System="yes" Value="[PROJECTLOCATIONBIN]" /> | ||
</Component> | ||
</Directory> | ||
</Directory> | ||
</Directory> | ||
</Directory> | ||
</Directory> | ||
|
||
<!-- Set the components defined in our fragment files that will be used for our feature --> | ||
<Feature Id="ChefWorkstationFeature" Title="!(loc.FeatureMainName)" Absent="disallow" AllowAdvertise="no" Level="1" ConfigurableDirectory="INSTALLLOCATION"> | ||
<ComponentGroupRef Id="ProjectDir" /> | ||
<ComponentRef Id="ChefWorkstationPath" /> | ||
</Feature> | ||
|
||
<!-- | ||
UI Stuff | ||
TODO: Icon | ||
--> | ||
<Icon Id="project16.ico" SourceFile="Resources\assets\project_16x16.ico"/> | ||
<Icon Id="project32.ico" SourceFile="Resources\assets\project_32x32.ico"/> | ||
<Icon Id="project.ico" SourceFile="Resources\assets\project.ico"/> | ||
<Property Id="ARPPRODUCTICON" Value="project16.ico" /> | ||
<!-- TODO: chef.sh or chef.io? --> | ||
|
||
<Property Id="ARPHELPLINK" Value="https://chef.sh/" /> | ||
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLLOCATION" /> | ||
|
||
<UIRef Id="ChefWorkstationUI_InstallDir"/> | ||
<UI Id="ChefWorkstationUI_InstallDir"> | ||
<UIRef Id="WixUI_FeatureTree"/> | ||
<TextStyle Id="WixUI_Font_Normal_White" FaceName="Tahoma" Size="8" Red="255" Green="255" Blue="255" /> | ||
<TextStyle Id="WixUI_Font_Bigger_White" FaceName="Tahoma" Size="12" Red="255" Green="255" Blue="255" /> | ||
<TextStyle Id="WixUI_Font_Title_White" FaceName="Tahoma" Size="9" Bold="yes" Red="255" Green="255" Blue="255" /> | ||
</UI> | ||
|
||
<WixVariable Id="WixUILicenseRtf" Value="Resources\assets\LICENSE.rtf" /> | ||
<WixVariable Id="WixUIDialogBmp" Value="Resources\assets\dialog_background.bmp" /> | ||
<WixVariable Id="WixUIBannerBmp" Value="Resources\assets\banner_background.bmp" /> | ||
|
||
<WixVariable Id="WixUIExclamationIco" Value="Resources\assets\project_32x32.ico" /> | ||
<WixVariable Id="WixUIInfoIco" Value="Resources\assets\project_32x32.ico" /> | ||
<WixVariable Id="WixUINewIco" Value="Resources\assets\project_16x16.ico" /> | ||
<WixVariable Id="WixUIUpIco" Value="Resources\assets\project_16x16.ico" /> | ||
|
||
</Product> | ||
</Wix> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explain why we're being explicit