Skip to content

Commit 7776e1c

Browse files
committed
WiX: adjust the rules for harvesting directories with heat
This should generate durable GUIDs at compile time to allow an in-place upgrade. Remove the unnecessary properties in the developer tools.
1 parent 3c2654b commit 7776e1c

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

platforms/Windows/devtools.wixproj

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,8 @@
2020

2121
<PropertyGroup>
2222
<DefineConstants>ProductArchitecture=$(ProductArchitecture);ProductVersion=$(ProductVersion);DEVTOOLS_ROOT=$(DEVTOOLS_ROOT);</DefineConstants>
23-
<HarvestDirectoryAutogenerateGuids>false</HarvestDirectoryAutogenerateGuids>
24-
<HarvestDirectoryGenerateGuidsNow>true</HarvestDirectoryGenerateGuidsNow>
25-
<HarvestDirectoryNoLogo>true</HarvestDirectoryNoLogo>
26-
<HarvestDirectorySuppressCom>true</HarvestDirectorySuppressCom>
27-
<HarvestDirectorySuppressFragments>true</HarvestDirectorySuppressFragments>
28-
<HarvestDirectorySuppressRegistry>true</HarvestDirectorySuppressRegistry>
29-
<HarvestDirectorySuppressRootDirectory>true</HarvestDirectorySuppressRootDirectory>
23+
<InstallerPlatform Condition=" '$(ProductArchitecture)' == 'amd64' ">x64</InstallerPlatform>
24+
<InstallerPlatform Condition=" '$(ProductArchitecture)' == 'arm64' ">arm64</InstallerPlatform>
3025
</PropertyGroup>
3126

3227
<ItemGroup>

platforms/Windows/sdk.wixproj

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@
2020

2121
<PropertyGroup>
2222
<DefineConstants>ProductArchitecture=$(ProductArchitecture);ProductVersion=$(ProductVersion);PLATFORM_ROOT=$(PLATFORM_ROOT);SDK_ROOT=$(SDK_ROOT);SwiftShimsPath=$(SDK_ROOT)\usr\lib\swift\shims;</DefineConstants>
23-
<HarvestDirectoryAutogenerateGuids>false</HarvestDirectoryAutogenerateGuids>
24-
<HarvestDirectoryGenerateGuidsNow>true</HarvestDirectoryGenerateGuidsNow>
25-
<HarvestDirectoryNoLogo>true</HarvestDirectoryNoLogo>
26-
<HarvestDirectorySuppressCom>true</HarvestDirectorySuppressCom>
27-
<HarvestDirectorySuppressFragments>true</HarvestDirectorySuppressFragments>
28-
<HarvestDirectorySuppressRegistry>true</HarvestDirectorySuppressRegistry>
29-
<HarvestDirectorySuppressRootDirectory>true</HarvestDirectorySuppressRootDirectory>
23+
</PropertyGroup>
24+
25+
<PropertyGroup>
26+
<HarvestNoLogo>true</HarvestNoLogo>
27+
<HarvestGenerateGuidsNow>true</HarvestGenerateGuidsNow>
3028
</PropertyGroup>
3129

3230
<ItemGroup>
@@ -39,7 +37,11 @@
3937
<ComponentGroupName>SwiftShims</ComponentGroupName>
4038
<DirectoryRefId>WindowsSDK_usr_lib_swift_shims</DirectoryRefId>
4139
<PreprocessorVariable>var.SwiftShimsPath</PreprocessorVariable>
40+
<SuppressCom>true</SuppressCom>
41+
<SuppressRegistry>true</SuppressRegistry>
42+
<SuppressRootDirectory>true</SuppressRootDirectory>
4243
</HarvestDirectory>
44+
4345
<Compile Include="sdk.wxs" />
4446
</ItemGroup>
4547
</Project>

platforms/Windows/toolchain.wixproj

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020

2121
<PropertyGroup>
2222
<DefineConstants>ProductArchitecture=$(ProductArchitecture);ProductVersion=$(ProductVersion);DEVTOOLS_ROOT=$(DEVTOOLS_ROOT);TOOLCHAIN_ROOT=$(TOOLCHAIN_ROOT);TOOLCHAIN_ROOT_USR_LIB_CLANG=$(TOOLCHAIN_ROOT)\usr\lib\clang</DefineConstants>
23-
<HarvestDirectoryAutogenerateGuids>false</HarvestDirectoryAutogenerateGuids>
24-
<HarvestDirectoryGenerateGuidsNow>true</HarvestDirectoryGenerateGuidsNow>
25-
<HarvestDirectoryNoLogo>true</HarvestDirectoryNoLogo>
26-
<HarvestDirectorySuppressCom>true</HarvestDirectorySuppressCom>
27-
<HarvestDirectorySuppressFragments>true</HarvestDirectorySuppressFragments>
28-
<HarvestDirectorySuppressRegistry>true</HarvestDirectorySuppressRegistry>
29-
<HarvestDirectorySuppressRootDirectory>true</HarvestDirectorySuppressRootDirectory>
23+
<InstallerPlatform Condition=" '$(ProductArchitecture)' == 'amd64' ">x64</InstallerPlatform>
24+
<InstallerPlatform Condition=" '$(ProductArchitecture)' == 'arm64' ">arm64</InstallerPlatform>
25+
</PropertyGroup>
26+
27+
<PropertyGroup>
28+
<HarvestNoLogo>true</HarvestNoLogo>
29+
<HarvestGenerateGuidsNow>true</HarvestGenerateGuidsNow>
3030
</PropertyGroup>
3131

3232
<ItemGroup>
@@ -39,7 +39,11 @@
3939
<ComponentGroupName>ClangResources</ComponentGroupName>
4040
<DirectoryRefId>_usr_lib_clang</DirectoryRefId>
4141
<PreprocessorVariable>var.TOOLCHAIN_ROOT_USR_LIB_CLANG</PreprocessorVariable>
42+
<SuppressCom>true</SuppressCom>
43+
<SuppressRegistry>true</SuppressRegistry>
44+
<SuppressRootDirectory>true</SuppressRootDirectory>
4245
</HarvestDirectory>
46+
4347
<Compile Include="toolchain.wxs" />
4448
</ItemGroup>
4549
</Project>

0 commit comments

Comments
 (0)