File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : TestsMSI
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - 3.8
8+ - 3.7
9+ paths :
10+ - ' Tools/msi/**'
11+ pull_request :
12+ branches :
13+ - master
14+ - 3.8
15+ - 3.7
16+ paths :
17+ - ' Tools/msi/**'
18+
19+ jobs :
20+ build_win32 :
21+ name : ' Windows (x86) Installer'
22+ runs-on : windows-latest
23+ steps :
24+ - uses : actions/checkout@v1
25+ - name : Build CPython installer
26+ run : .\Tools\msi\build.bat -x86
27+
28+ build_win_amd64 :
29+ name : ' Windows (x64) Installer'
30+ runs-on : windows-latest
31+ steps :
32+ - uses : actions/checkout@v1
33+ - name : Build CPython installer
34+ run : .\Tools\msi\build.bat -x64
Original file line number Diff line number Diff line change 1+ Ensures the required :file: `vcruntime140.dll ` is included in install
2+ packages.
Original file line number Diff line number Diff line change @@ -193,4 +193,25 @@ public override bool Execute() {
193193 <Error Text =" Unable to locate signtool.exe. Set /p:SignToolPath and rebuild" Condition =" '$(_SignCommand)' == ''" />
194194 <Exec Command =' $(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)"' ContinueOnError =" false" />
195195 </Target >
196- </Project >
196+
197+
198+ <Target Name =" FindVCRuntime" Returns =" VCRuntimeDLL" >
199+ <PropertyGroup Condition =" $(PlatformToolset) != 'v140'" >
200+ <VCRedistDir >$(VCInstallDir)\Redist\MSVC\$(VCToolsRedistVersion)\</VCRedistDir >
201+ <VCRedistDir Condition =" $(Platform) == 'Win32'" >$(VCRedistDir)x86\</VCRedistDir >
202+ <VCRedistDir Condition =" $(Platform) != 'Win32'" >$(VCRedistDir)$(Platform)\</VCRedistDir >
203+ </PropertyGroup >
204+ <PropertyGroup Condition =" $(PlatformToolset) == 'v140'" >
205+ <VCRedistDir >$(VCInstallDir)\redist\</VCRedistDir >
206+ <VCRedistDir Condition =" $(Platform) == 'Win32'" >$(VCRedistDir)x86\</VCRedistDir >
207+ <VCRedistDir Condition =" $(Platform) != 'Win32'" >$(VCRedistDir)$(Platform)\</VCRedistDir >
208+ </PropertyGroup >
209+
210+ <ItemGroup Condition =" $(VCInstallDir) != ''" >
211+ <VCRuntimeDLL Include =" $(VCRedistDir)\Microsoft.VC*.CRT\vcruntime*.dll" />
212+ </ItemGroup >
213+
214+ <Error Text =" vcruntime14*.dll not found under $(VCInstallDir)" Condition =" @(VCRuntimeDLL) == ''" />
215+ <Message Text =" VCRuntimeDLL: @(VCRuntimeDLL)" Importance =" high" />
216+ </Target >
217+ </Project >
Original file line number Diff line number Diff line change 460460 <Warning Text =" Not including zlib is not a supported configuration." />
461461 </Target >
462462
463- <PropertyGroup >
464- <VCRedistDir >$(VCInstallDir)\Redist\MSVC\$(VCToolsRedistVersion)\</VCRedistDir >
465- <VCRedistDir Condition =" $(Platform) == 'Win32'" >$(VCRedistDir)x86\</VCRedistDir >
466- <VCRedistDir Condition =" $(Platform) != 'Win32'" >$(VCRedistDir)$(Platform)\</VCRedistDir >
467- </PropertyGroup >
468- <ItemGroup Condition =" $(VCInstallDir) != ''" >
469- <VCRuntimeDLL Include =" $(VCRedistDir)\**\vcruntime*.dll" />
470- </ItemGroup >
471- <Target Name =" _CopyVCRuntime" AfterTargets =" Build" Inputs =" @(VCRuntimeDLL)" Outputs =" $(OutDir)%(Filename)%(Extension)" >
463+ <Target Name =" _CopyVCRuntime" AfterTargets =" Build" Inputs =" @(VCRuntimeDLL)" Outputs =" $(OutDir)%(Filename)%(Extension)" DependsOnTargets =" FindVCRuntime" >
472464 <!-- bpo-38597: When we switch to another VCRuntime DLL, include vcruntime140.dll as well -->
473465 <Warning Text =" A copy of vcruntime140.dll is also required" Condition =" !$(VCToolsRedistVersion.StartsWith(`14.`))" />
474466 <Copy SourceFiles =" %(VCRuntimeDLL.FullPath)" DestinationFolder =" $(OutDir)" />
Original file line number Diff line number Diff line change 1111 <SuppressICEs >ICE43</SuppressICEs >
1212 </PropertyGroup >
1313 <Import Project =" ..\msi.props" />
14+ <PropertyGroup Condition =" exists('$(BuildPath)vcruntime140_1.dll')" >
15+ <DefineConstants >$(DefineConstants);Include_Vcruntime140_1_dll=1</DefineConstants >
16+ </PropertyGroup >
1417 <ItemGroup >
1518 <Compile Include =" exe.wxs" />
1619 <Compile Include =" exe_files.wxs" />
Original file line number Diff line number Diff line change 3030 </RegistryKey >
3131 </Component >
3232 <Component Id =" vcruntime140.dll" Directory =" InstallDirectory" Guid =" *" >
33- <File Name =" vcruntime140.dll" Source =" !(bindpath.redist) vcruntime140.dll" KeyPath =" yes" />
33+ <File Name =" vcruntime140.dll" Source =" vcruntime140.dll" KeyPath =" yes" />
3434 </Component >
35+ <?ifdef Include _Vcruntime140_1_dll ?>
36+ <Component Id =" vcruntime140_1.dll" Directory =" InstallDirectory" Guid =" *" >
37+ <File Name =" vcruntime140_1.dll" Source =" vcruntime140_1.dll" KeyPath =" yes" />
38+ </Component >
39+ <?endif ?>
3540 </ComponentGroup >
3641 </Fragment >
3742
You can’t perform that action at this time.
0 commit comments