New GitHub issue #118756 from SebTV:<br>

<hr>

<pre>
# Bug report

### Bug description:

On Windows try to build Python+Installer using `tools\msi\buildrelease.bat`:
Use ` get_externals.bat `to offline-cache packages
Set `EXTERNALS_DIR`
start `buildrelease.bat`
Result
_<...>Python-3.12.2\Tools\msi\launcher\launcher.wixproj" (default target) (1) -> <...>Python-3.12.2\Tools\msi\msi.targets(78,5): error MSB4019: The imported project "C:\Wix.targets" was not found. Confirm that the expression in the Import declaration "\Wix.targets" is correct, and that the file exists on disk. [<...>Python-3.12.2\Tools\msi\launcher\launcher.wixproj]_ 

Note that `get_externals.bat` puts wix-314 into the root of `EXTERNALS_DIR` while `Python-3.12.2/Tools/msi/wix.props` expects a subdirectory `windows-installer`.
The following workaround helps
```
--- Python-3.12.2/Tools/msi/wix.props.org        2024-05-08 09:09:16.315580200 +0200
+++ Python-3.12.2/Tools/msi/wix.props    2024-05-08 09:17:27.017492000 +0200 @@ -4,9 +4,9 @@
     <PropertyGroup>
 <WixInstallPath Condition="'$(WixInstallPath)' == '' and Exists('$(MSBuildThisFileDirectory)\Wix')">$(MSBuildThisFileDirectory)\Wix\</WixInstallPath>
- <WixInstallPath Condition="'$(WixInstallPath)' == '' and Exists('$(ExternalsDir)\windows-installer\wix-314')">$(ExternalsDir)\windows-installer\wix-314\</WixInstallPath>
+ <WixInstallPath Condition="'$(WixInstallPath)' == '' and Exists('$(ExternalsDir)\wix-314')">$(ExternalsDir)\wix-314\</WixInstallPath>
 <WixInstallPath Condition="'$(WixInstallPath)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Installer XML\3.10@InstallRoot)</WixInstallPath>
     <WixInstallPath Condition="'$(WixInstallPath)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows Installer XML\3.10@InstallRoot)</WixInstallPath>
 <WixTargetsPath>$(WixInstallPath)\Wix.targets</WixTargetsPath>
</PropertyGroup>


```

### CPython versions tested on:

3.12

### Operating systems tested on:

Windows
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/118756">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>