-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SNOW-1055755: windows build - back to wix 3
- Loading branch information
1 parent
5a25ed4
commit 805cb53
Showing
5 changed files
with
159 additions
and
143 deletions.
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 was deleted.
Oops, something went wrong.
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,108 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" | ||
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> | ||
<Package Name="Snowflake CLI" Language="1033" Version="$(var.SnowflakeCLIVersion)" | ||
Manufacturer="Snowflake, Inc." UpgradeCode="42280567-AE10-4184-8BB4-F98F59519CB2" | ||
InstallerVersion="405"> | ||
<SummaryInformation Manufacturer="Snowflake, Inc." /> | ||
<WixVariable Id="WixUIDialogBmp" Value="scripts\packaging\win\snowflake_msi_background.png" /> | ||
<WixVariable Id="WixUIBannerBmp" Value="scripts\packaging\win\snowflake_msi_banner.png" /> | ||
<Media Id="1" Cabinet="snow.cab" EmbedCab="yes" /> | ||
<MajorUpgrade AllowDowngrades="yes" /> | ||
|
||
<DirectoryRef Id="TESTFILEPRODUCTDIR"> | ||
<Component Id="snow.exe" Guid="3FDE264C-66C4-4B6C-AE4C-F42618FB98BC" Bitness="always64"> | ||
<Environment Id="PATH" Name="PATH" Value="[TESTFILEPRODUCTDIR]" Permanent="no" Part="last" | ||
Action="set" System="yes" /> | ||
<File Id="snow.exe" Source="dist\snow\snow.exe" KeyPath="yes" Checksum="yes" /> | ||
</Component> | ||
</DirectoryRef> | ||
<Feature Id="MainApplication" Title="Snowflake CLI" Level="1"> | ||
<ComponentRef Id="snow.exe" /> | ||
</Feature> | ||
<Icon Id="icon.ico" SourceFile="scripts\packaging\win\snowflake_msi.ico" /> | ||
<Property Id="ARPPRODUCTICON" Value="icon.ico" /> | ||
<Property Id="ARPHELPLINK" | ||
Value="https://docs.snowflake.net/manuals/user-guide/snowflake-cli.html" /> | ||
<Property Id="ARPNOMODIFY" Value="yes" Secure="yes" /> | ||
<Property Id="ARPURLINFOABOUT" Value="https://snowflake.com/" /> | ||
<Property Id="WIXUI_INSTALLDIR" Value="TESTFILEPRODUCTDIR" /> | ||
<UIRef Id="WixUI_InstallDir2" /> | ||
<Property Id="ApplicationFolderName" Value="Snowflake CLI" /> | ||
<Property Id="WixAppFolder" Value="WixUISupportPerUser" /> | ||
<util:BroadcastSettingChange /> | ||
<util:BroadcastEnvironmentChange /> | ||
|
||
<StandardDirectory Id="ProgramFiles64Folder"> | ||
<Directory Id="TESTFILEPRODUCTDIR" Name="Snowflake CLI" /> | ||
</StandardDirectory> | ||
</Package> | ||
<Fragment> | ||
<UI Id="WixUI_InstallDir2"> | ||
<TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> | ||
<TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> | ||
<TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> | ||
|
||
<Property Id="DefaultUIFont" Value="WixUI_Font_Normal" /> | ||
<Property Id="WixUI_Mode" Value="InstallDir" /> | ||
<DialogRef Id="BrowseDlg" /> | ||
<DialogRef Id="DiskCostDlg" /> | ||
<DialogRef Id="ErrorDlg" /> | ||
<DialogRef Id="FatalError" /> | ||
<DialogRef Id="FilesInUse" /> | ||
<DialogRef Id="MsiRMFilesInUse" /> | ||
<DialogRef Id="PrepareDlg" /> | ||
<DialogRef Id="ProgressDlg" /> | ||
<DialogRef Id="ResumeDlg" /> | ||
<DialogRef Id="UserExit" /> | ||
<DialogRef Id="SnowflakeCLIExitDlg" /> | ||
|
||
<Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" | ||
Value="WixUIValidatePath_$(sys.BUILDARCHSHORT)" Order="3" /> | ||
<Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4" | ||
Condition="WIXUI_INSTALLDIR_VALID<>"1"" /> | ||
|
||
<Publish Dialog="SnowflakeCLIExitDlg" Control="Finish" Event="EndDialog" Value="Return" | ||
Order="999" /> | ||
|
||
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg" | ||
Condition="NOT Installed" /> | ||
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" | ||
Condition="Installed AND PATCH" /> | ||
|
||
<Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" /> | ||
<Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" | ||
Value="[WIXUI_INSTALLDIR]" Order="1" /> | ||
<Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" | ||
Value="WixUIValidatePath_$(sys.BUILDARCHSHORT)" Order="2" | ||
Condition="NOT WIXUI_DONTVALIDATEPATH" /> | ||
<Publish Dialog="InstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" | ||
Order="3" | ||
Condition="NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"" /> | ||
<Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" | ||
Order="4" Condition="WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"" /> | ||
<Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" | ||
Value="[WIXUI_INSTALLDIR]" Order="1" /> | ||
<Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" | ||
Order="2" /> | ||
|
||
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg" | ||
Order="1" Condition="NOT Installed" /> | ||
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" | ||
Order="2" Condition="Installed AND NOT PATCH" /> | ||
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2" | ||
Condition="Installed AND PATCH" /> | ||
|
||
<Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" | ||
Value="MaintenanceTypeDlg" /> | ||
|
||
<Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" | ||
Value="VerifyReadyDlg" /> | ||
<Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" | ||
Value="VerifyReadyDlg" /> | ||
<Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" | ||
Value="MaintenanceWelcomeDlg" /> | ||
</UI> | ||
<UIRef Id="WixUI_Common" /> | ||
</Fragment> | ||
</Wix> |
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