Skip to content

Commit cda0ec8

Browse files
authored
gh-124102: Clean up unsupported VS and WiX detections (GH-124784)
1 parent 10c4c95 commit cda0ec8

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed

PCbuild/pyproject.props

-5
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,6 @@ public override bool Execute() {
217217

218218

219219
<Target Name="FindVCRedistDir">
220-
<!-- Hard coded path for VS 2015 -->
221-
<PropertyGroup Condition="$(PlatformToolset) == 'v140'">
222-
<VCRedistDir>$(VCInstallDir)\redist\</VCRedistDir>
223-
</PropertyGroup>
224-
225220
<!-- Search for version number in some broken Build Tools installs -->
226221
<ItemGroup Condition="$(VCRedistDir) == '' and $(VCToolsRedistVersion) == ''">
227222
<_RedistFiles Include="$(VCInstallDir)\Redist\MSVC\*\*.*" />

Tools/msi/README.txt

+11-9
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,20 @@ the initial download size by separating them into their own MSIs.
6161
Building the Installer
6262
======================
6363

64-
Before building the installer, download extra build dependencies using
65-
Tools\msi\get_externals.bat. (Note that this is in addition to the
64+
Before building the installer, download the extra build dependencies
65+
using Tools\msi\get_externals.bat. (Note that this is in addition to the
6666
similarly named file in PCbuild.)
6767

68-
One of the dependencies used in builds is WiX, a toolset that lets developers
69-
create installers for Windows Installer, the Windows installation engine.
68+
One of the dependencies used in the build process is WiX, a toolset that
69+
allows developers to create installers for Windows Installer, the
70+
Windows installation engine. If you're not using the copy of WiX
71+
installed by Tools\msi\get_externals.bat, you'll need to set the
72+
"WixInstallPath" environment variable before building.
7073

71-
Additionally, make sure "MSVC v14x - VS 20xx C++ ARM64 build tools" are
72-
selected under "Desktop Development with C++" in "Visual Studio installer",
73-
even if you are not building on ARM64. This is required because we have
74-
upgraded to WiX-3.14, which requires these tools for Python 3.11 and later
75-
versions.
74+
Additionally, ensure that "MSVC v14x - VS 20xx C++ ARM64/ARM64EC build tools"
75+
is selected under "Desktop Development with C++" in the "Visual Studio Installer",
76+
even if you're not building on ARM64. This is required because we've upgraded
77+
to WiX 3.14, which requires these tools for Python 3.10 and later versions.
7678

7779
For testing, the installer should be built with the Tools/msi/build.bat
7880
script:

Tools/msi/wix.props

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
<PropertyGroup>
66
<WixInstallPath Condition="'$(WixInstallPath)' == '' and Exists('$(MSBuildThisFileDirectory)\Wix')">$(MSBuildThisFileDirectory)\Wix\</WixInstallPath>
77
<WixInstallPath Condition="'$(WixInstallPath)' == '' and Exists('$(ExternalsDir)\windows-installer\wix-314')">$(ExternalsDir)\windows-installer\wix-314\</WixInstallPath>
8-
<WixInstallPath Condition="'$(WixInstallPath)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Installer XML\3.10@InstallRoot)</WixInstallPath>
9-
<WixInstallPath Condition="'$(WixInstallPath)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows Installer XML\3.10@InstallRoot)</WixInstallPath>
108
<WixTargetsPath>$(WixInstallPath)\Wix.targets</WixTargetsPath>
119
</PropertyGroup>
1210
</Project>

0 commit comments

Comments
 (0)