-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Packaging] Support x86 and x64 MSI builds #26640
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
Changes from 2 commits
3310d7f
cbff2cb
496e7d1
78e26e6
36ddbc0
efe327b
16ed951
c2e85ec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,18 +8,55 @@ | |
| <?define ProductAuthor = "Microsoft Corporation" ?> | ||
| <?define ProductResources = ".\resources\" ?> | ||
|
|
||
| <?if $(var.Platform) = "x64" ?> | ||
| <?define AzureCliRegistryGuid = "90b6367e-4e15-4313-af33-a0ef459a56fc" ?> | ||
| <?define AzureCliSystemPathGuid = "12c8f0dc-0475-4814-93b6-fcbe82e89532" ?> | ||
| <?define AzureCliVersionGuid = "4df4882f-4604-4cdc-a0b4-bffc4b8c5967" ?> | ||
| <?define ProgramFilesFolder = "ProgramFiles64Folder" ?> | ||
| <?define RemoveAzureCLIFolderGuid = "7ce8a521-7429-4ded-9cce-0948e393cc83" ?> | ||
| <?define RemoveCLIFolderGuid = "59fb416c-91d0-49aa-a185-d4330c435a93" ?> | ||
| <?define UpgradeCode = "90762fec-9554-4729-a107-c6a8ea316698" ?> | ||
heaths marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| <?elseif $(var.Platform) = "x86" ?> | ||
| <?define AzureCliRegistryGuid = "BDEEE50E-70D3-4990-BFF9-FCF8114AA701" ?> | ||
| <?define AzureCliSystemPathGuid = "3B60CA67-DB92-465A-BC96-3CA6CAEFF41B" ?> | ||
| <?define AzureCliVersionGuid = "A5647E93-02B7-4CED-802A-DDD7416E0231" ?> | ||
| <?define ProgramFilesFolder = "ProgramFilesFolder" ?> | ||
| <?define RemoveAzureCLIFolderGuid = "6AF97701-6A7A-4292-95D6-ED34CD4C97C0" ?> | ||
| <?define RemoveCLIFolderGuid = "24DA394D-B03D-4623-A0D9-852DB51EF9F4" ?> | ||
| <?define UpgradeCode = "dff82af0-3f95-4ac9-8efd-948604fdb028" ?> | ||
|
|
||
| <?else ?> | ||
| <?error Unsupported platform "$(var.Platform)" ?> | ||
| <?endif ?> | ||
|
|
||
| <Product Id="*" | ||
| Name="$(var.ProductName)" | ||
|
||
| Language="1033" | ||
| Version="$(var.ProductVersion)" | ||
| Manufacturer="$(var.ProductAuthor)" | ||
| UpgradeCode="dff82af0-3f95-4ac9-8efd-948604fdb028"> | ||
| UpgradeCode="$(var.UpgradeCode)"> | ||
|
|
||
| <Package InstallerVersion="200" | ||
| Compressed="yes" | ||
| InstallScope="perMachine" /> | ||
|
|
||
| <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." Schedule="afterInstallExecute" /> | ||
| <Upgrade Id="$(var.UpgradeCode)"> | ||
| <UpgradeVersion Property="WIX_UPGRADE_DETECTED" Maximum="$(var.ProductVersion)" IncludeMinimum="no" MigrateFeatures="yes" /> | ||
| <UpgradeVersion Property="WIX_DOWNGRADE_DETECTED" Minimum="$(var.ProductVersion)" IncludeMinimum="no" OnlyDetect="yes" /> | ||
| </Upgrade> | ||
| <Condition Message="A newer version of [ProductName] is already installed.">NOT WIX_DOWNGRADE_DETECTED</Condition> | ||
| <InstallExecuteSequence> | ||
| <RemoveExistingProducts After="InstallExecute" /> | ||
| </InstallExecuteSequence> | ||
|
|
||
| <!-- New product architectures should upgrade the original x86 product - even of the same version. --> | ||
| <?if $(var.UpgradeCode) != "dff82af0-3f95-4ac9-8efd-948604fdb028" ?> | ||
| <Upgrade Id="dff82af0-3f95-4ac9-8efd-948604fdb028"> | ||
| <UpgradeVersion Property="WIX_UPGRADE_DETECTED" Maximum="$(var.ProductVersion)" IncludeMinimum="yes" MigrateFeatures="yes" /> | ||
| <UpgradeVersion Property="WIX_DOWNGRADE_DETECTED" Minimum="$(var.ProductVersion)" IncludeMinimum="no" OnlyDetect="yes" /> | ||
| </Upgrade> | ||
heaths marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <?endif ?> | ||
|
|
||
| <Media Id="1" Cabinet="WindowsAzureCLI.cab" EmbedCab="yes" CompressionLevel="high" /> | ||
|
|
||
|
|
@@ -61,7 +98,7 @@ | |
|
|
||
| <Fragment> | ||
| <Directory Id="TARGETDIR" Name="SourceDir"> | ||
| <Directory Id="ProgramFilesFolder"> | ||
| <Directory Id="$(var.ProgramFilesFolder)"> | ||
| <Directory Id="SDKFOLDER" Name="Microsoft SDKs"> | ||
| <Directory Id="AZUREFOLDER" Name="Azure"> | ||
| <Directory Id="AZURECLIFOLDER" Name="CLI2"> | ||
|
|
@@ -78,17 +115,17 @@ | |
| <ComponentGroup Id="AzureCliSettingsGroup"> | ||
| <Component Id="RemoveCLIFolder" | ||
| Directory="DynamicCliDir" | ||
| Guid="{24DA394D-B03D-4623-A0D9-852DB51EF9F4}"> | ||
| Guid="$(var.RemoveCLIFolderGuid)"> | ||
| <RemoveFolder Id="DynamicCliDir" On="uninstall" /> | ||
| </Component> | ||
| <Component Id="RemoveAzureCLIFolder" | ||
| Directory="AZURECLIFOLDER" | ||
| Guid="{6AF97701-6A7A-4292-95D6-ED34CD4C97C0}"> | ||
| Guid="$(var.RemoveAzureCLIFolderGuid)"> | ||
| <RemoveFolder Id="AZURECLIFOLDER" On="uninstall" /> | ||
| </Component> | ||
| <Component Id="AzureCliSystemPath" | ||
| Directory="DynamicCliDir" | ||
| Guid="{3B60CA67-DB92-465A-BC96-3CA6CAEFF41B}"> | ||
| Guid="$(var.AzureCliSystemPathGuid)"> | ||
| <Environment Id="AzureCliAddedToPATH" | ||
| Name="PATH" | ||
| Value="[DynamicCliDir]wbin" | ||
|
|
@@ -100,7 +137,7 @@ | |
| </Component> | ||
| <Component Id="AzureCliRegistry" | ||
| Directory="DynamicCliDir" | ||
| Guid="{BDEEE50E-70D3-4990-BFF9-FCF8114AA701}"> | ||
| Guid="$(var.AzureCliRegistryGuid)"> | ||
| <RegistryValue Root="HKCU" | ||
| Key="Software\Microsoft\$(var.ProductName)" | ||
| Name="installed" | ||
|
|
@@ -110,7 +147,7 @@ | |
| </Component> | ||
| <Component Id="AzureCliVersion" | ||
| Directory="DynamicCliDir" | ||
| Guid="{A5647E93-02B7-4CED-802A-DDD7416E0231}"> | ||
| Guid="$(var.AzureCliVersionGuid)"> | ||
| <RegistryValue Root="HKLM" | ||
| Key="Software\Microsoft\$(var.ProductName)" | ||
| Name="version" | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.