File tree Expand file tree Collapse file tree 5 files changed +26
-11
lines changed Expand file tree Collapse file tree 5 files changed +26
-11
lines changed Original file line number Diff line number Diff line change 6
6
<VCRedistDownloadUrl Condition =" '$(VCRedistDownloadUrl)' == '' AND '$(VSMajorVersion)' != '' " >https://aka.ms/vs/$(VSMajorVersion)/release/vc_redist.$(ProductArchitecture).exe</VCRedistDownloadUrl >
7
7
<DefineConstants >
8
8
$(DefineConstants);
9
- VCRedistInstaller=$(VCRedistInstaller);
10
- VCRedistDownloadUrl=$(VCRedistDownloadUrl);
11
9
INCLUDE_X86_SDK=$(INCLUDE_X86_SDK);
12
10
INCLUDE_ARM64_SDK=$(INCLUDE_ARM64_SDK);
13
11
</DefineConstants >
Original file line number Diff line number Diff line change 59
59
-->
60
60
61
61
<Chain >
62
- <?if $(VCRedistInstaller) != " " ?>
63
- <BundlePackage
64
- SourceFile =" $(VCRedistInstaller)"
65
- Permanent =" yes"
66
- InstallArguments =" /install /quiet /norestart"
67
- DownloadUrl =" $(VCRedistDownloadUrl)" >
68
- </BundlePackage >
69
- <?endif ?>
70
-
71
62
<MsiPackage
72
63
SourceFile =" !(bindpath.rtl)\rtl.msi"
73
64
DownloadUrl =" $(BaseReleaseDownloadUrl)/{2}" >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" WixToolset.Sdk/4.0.1" >
2
2
<PropertyGroup >
3
3
<OutputName >rtl</OutputName >
4
+ <DefineConstants >
5
+ $(DefineConstants);
6
+ VCRedistDir=$(VCRedistDir);
7
+ </DefineConstants >
4
8
</PropertyGroup >
5
9
6
10
<ItemGroup Condition =" '$(ProductArchitecture)' == 'x86' " >
14
18
<ItemGroup Condition =" '$(ProductArchitecture)' == 'arm64' " >
15
19
<ProjectReference Include =" ..\lib\rtllib.wixproj" Properties =" ProductArchitecture=arm64;Platform=arm64" />
16
20
</ItemGroup >
21
+
22
+ <ItemGroup >
23
+ <PackageReference Include =" WixToolset.Heat" Version =" 4.0.1" />
24
+ </ItemGroup >
25
+
26
+ <ItemGroup >
27
+ <HarvestDirectory Include =" $(VCRedistDir)" >
28
+ <ComponentGroupName >VCRuntime_$(ProductArchitecture)</ComponentGroupName >
29
+ <DirectoryRefId >RUNTIMEDIR_$(ProductArchitecture)</DirectoryRefId >
30
+ <PreprocessorVariable >var.VCRedistDir</PreprocessorVariable >
31
+ <SuppressCom >true</SuppressCom >
32
+ <SuppressRegistry >true</SuppressRegistry >
33
+ <SuppressRootDirectory >true</SuppressRootDirectory >
34
+ </HarvestDirectory >
35
+ </ItemGroup >
17
36
</Project >
Original file line number Diff line number Diff line change 22
22
</Component >
23
23
</ComponentGroup >
24
24
25
+ <Feature Id =" VCRuntime" AllowAbsent =" no" Title =" !(loc.VCRuntime_ProductName_$(ProductArchitecture))" >
26
+ <ComponentGroupRef Id =" VCRuntime_$(ProductArchitecture)" />
27
+ </Feature >
28
+
25
29
<Feature Id =" SwiftRuntime" AllowAbsent =" no" Title =" !(loc.Rtl_ProductName_$(ProductArchitecture))" >
26
30
<ComponentGroupRef Id =" swift_runtime_$(ProductArchitecture)" />
27
31
<ComponentGroupRef Id =" EnvironmentVariables" />
Original file line number Diff line number Diff line change 7
7
<String Id =" Dbg_ProductName" Value =" Swift Debugging Tools" />
8
8
<String Id =" Ide_ProductName" Value =" Swift IDE Integration Tools" />
9
9
<String Id =" Rtl_ProductName" Value =" Swift Windows Utilities" />
10
+ <String Id =" VCRuntime_ProductName_arm64" Value =" Visual C++ Runtime (ARM64)" />
11
+ <String Id =" VCRuntime_ProductName_amd64" Value =" Visual C++ Runtime (AMD64)" />
12
+ <String Id =" VCRuntime_ProductName_x86" Value =" Visual C++ Runtime (X86)" />
10
13
<String Id =" Rtl_ProductName_arm64" Value =" Swift Windows Utilities (ARM64)" />
11
14
<String Id =" Rtl_ProductName_amd64" Value =" Swift Windows Utilities (AMD64)" />
12
15
<String Id =" Rtl_ProductName_x86" Value =" Swift Windows Utilities (X86)" />
You can’t perform that action at this time.
0 commit comments