Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c75c18

Browse files
committed
Issue #28110: launcher.msi has different product codes between 32-bit and 64-bit
1 parent bdcc8f9 commit 1c75c18

5 files changed

Lines changed: 10 additions & 16 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,9 @@ Tools/Demos
348348
Windows
349349
-------
350350

351+
- Issue #28110: launcher.msi has different product codes between 32-bit and
352+
64-bit
353+
351354
- Issue #25144: Ensures TargetDir is set before continuing with custom
352355
install.
353356

Tools/msi/buildrelease.bat

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,12 @@ if not "%SKIPBUILD%" EQU "1" (
174174
@echo off
175175
)
176176

177-
set BUILDOPTS=/p:Platform=%1 /p:BuildForRelease=true /p:DownloadUrl=%DOWNLOAD_URL% /p:DownloadUrlBase=%DOWNLOAD_URL_BASE% /p:ReleaseUri=%RELEASE_URI%
177+
set BUILDOPTS=/p:BuildForRelease=true /p:DownloadUrl=%DOWNLOAD_URL% /p:DownloadUrlBase=%DOWNLOAD_URL_BASE% /p:ReleaseUri=%RELEASE_URI%
178178
if "%PGO%" NEQ "" set BUILDOPTS=%BUILDOPTS% /p:PGOBuildPath=%BUILD%
179-
msbuild "%D%bundle\releaselocal.wixproj" /t:Rebuild %BUILDOPTS% %CERTOPTS% /p:RebuildAll=true
179+
msbuild "%D%launcher\launcher.wixproj" /p:Platform=x86 %CERTOPTS% /p:ReleaseUri=%RELEASE_URI%
180+
msbuild "%D%bundle\releaselocal.wixproj" /t:Rebuild /p:Platform=%1 %BUILDOPTS% %CERTOPTS% /p:RebuildAll=true
180181
if errorlevel 1 exit /B
181-
msbuild "%D%bundle\releaseweb.wixproj" /t:Rebuild %BUILDOPTS% %CERTOPTS% /p:RebuildAll=false
182+
msbuild "%D%bundle\releaseweb.wixproj" /t:Rebuild /p:Platform=%1 %BUILDOPTS% %CERTOPTS% /p:RebuildAll=false
182183
if errorlevel 1 exit /B
183184

184185
msbuild "%D%make_zip.proj" /t:Build %BUILDOPTS% %CERTOPTS%

Tools/msi/bundle/bundle.targets

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,6 @@
8787
<MSBuild Projects="@(Package)" Targets="$(BuildPackagesTargets)" BuildInParallel="true" />
8888
</Target>
8989

90-
<Target Name="BuildLauncher" BeforeTargets="BeforeBuild" Condition="'$(RebuildAll)' != 'false'">
91-
<!--
92-
Build the launcher MSI using Exec rather than MSBuild
93-
Also, never use the test marker for the launcher. It's going to corrupt things anyway, so we'll
94-
just disable it by default.
95-
-->
96-
<Exec Command='msbuild ..\launcher\launcher.wixproj /p:Platform=x86 /p:ReleaseUri="$(ReleaseUri)" /p:OutputPath="$(BuildPath.TrimEnd(`\`))" /p:OutputSuffix=$(Platform) /p:BuildForRelease=$(BuildForRelease) /p:UseTestMarker=false'
97-
ContinueOnError="false" />
98-
</Target>
99-
10090
<Target Name="BuildBootstrapApplication" BeforeTargets="BeforeBuild">
10191
<Message Text="Building bootstrap app" Importance="high" />
10292

Tools/msi/bundle/packagegroups/launcher.wxs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<PackageGroup Id="launcher">
55
<!-- The All Users launcher is always the 32-bit version -->
66
<MsiPackage Id="launcher_AllUsers"
7-
SourceFile="launcher.msi"
7+
SourceFile="!(bindpath.build32)en-us\launcher.msi"
88
Compressed="$(var.CompressMSI)"
99
DownloadUrl="$(var.DownloadUrl)"
1010
ForcePerMachine="yes"
@@ -14,7 +14,7 @@
1414
InstallCondition="(InstallAllUsers or InstallLauncherAllUsers) and Include_launcher and not DetectedLauncher" />
1515

1616
<MsiPackage Id="launcher_JustForMe"
17-
SourceFile="launcher.msi"
17+
SourceFile="!(bindpath.build32)en-us\launcher.msi"
1818
Compressed="$(var.CompressMSI)"
1919
DownloadUrl="$(var.DownloadUrl)"
2020
ForcePerMachine="no"

Tools/msi/make_zip.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<TargetPath>$(OutputPath)\en-us\$(TargetName)$(TargetExt)</TargetPath>
1717
<CleanCommand>rmdir /q/s "$(IntermediateOutputPath)\zip_$(ArchName)"</CleanCommand>
1818
<Arguments>"$(PythonExe)" "$(MSBuildThisFileDirectory)\make_zip.py"</Arguments>
19-
<Arguments>$(Arguments) -e -o "$(TargetPath)" -t "$(IntermediateOutputPath)\zip_$(ArchName)" -b "$(OutDir.TrimEnd('\'))"</Arguments>
19+
<Arguments>$(Arguments) -e -o "$(TargetPath)" -t "$(IntermediateOutputPath)\zip_$(ArchName)" -a "$(ArchName)"</Arguments>
2020
<Environment>set DOC_FILENAME=python$(PythonVersion).chm
2121
set VCREDIST_PATH=$(VS140COMNTOOLS)\..\..\VC\redist\$(Platform)\Microsoft.VC140.CRT</Environment>
2222
</PropertyGroup>

0 commit comments

Comments
 (0)