add support for arm64 msi (#659)

This commit is contained in:
Tess Gauthier 2023-02-07 17:07:13 -05:00 committed by GitHub
parent 2bf8005da1
commit 913e43cb71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -14,6 +14,7 @@
ProductVersion=$(ProductVersion);
</DefineConstants>
<DefineSolutionProperties>false</DefineSolutionProperties>
<!-- This is sufficient for x86 and x64 but gets overwritten below for ARM64 -->
<WixTargetsPath Condition="'$(WixTargetsPath)' == ''">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
</PropertyGroup>
@ -24,6 +25,12 @@
</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'ARM64'">
<!-- Assumes WixToolPath input is provided at runtime -->
<WixTargetsPath>$(WixToolPath)Wix.targets</WixTargetsPath>
<WixTasksPath>$(WixToolPath)wixtasks.dll</WixTasksPath>
</PropertyGroup>
<ItemGroup>
<BindInputPaths Include="..\..\..\bin\$(Platform)\$(Configuration)" />
</ItemGroup>

View File

@ -11,6 +11,9 @@
<?elseif $(var.Platform) = "x86"?>
<?define ProgramFilesFolder = "ProgramFilesFolder"?>
<?define UpgradeCode = "2A1799F1-5B26-4DDC-A0C7-03F75C4C08D2"?>
<?elseif $(var.Platform) = "ARM64"?>
<?define ProgramFilesFolder = "ProgramFiles64Folder"?>
<?define UpgradeCode = "5D153A07-920A-4978-8B33-8447DD4C42F9"?>
<?else?>
<?error Platform $(var.Platform) is not supported?>
<?endif?>