File tree 11 files changed +26
-4
lines changed
11 files changed +26
-4
lines changed Original file line number Diff line number Diff line change
1
+ Prevent CVE-2022-26488 by ensuring the Add to PATH option in the Windows
2
+ installer uses the correct path when being repaired.
Original file line number Diff line number Diff line change 95
95
<Chain ParallelCache =" yes" >
96
96
<PackageGroupRef Id =" crt" />
97
97
<PackageGroupRef Id =" core" />
98
- <PackageGroupRef Id =" dev" />
99
98
<PackageGroupRef Id =" exe" />
99
+ <PackageGroupRef Id =" dev" />
100
100
<PackageGroupRef Id =" lib" />
101
101
<PackageGroupRef Id =" test" />
102
102
<PackageGroupRef Id =" doc" />
Original file line number Diff line number Diff line change 53
53
</Fragment >
54
54
55
55
<Fragment >
56
- <?ifdef InstallDirectoryGuidSeed ?>
57
56
<Directory Id =" TARGETDIR" Name =" SourceDir" >
57
+ <?ifdef InstallDirectoryGuidSeed ?>
58
58
<Directory Id =" InstallDirectory" ComponentGuidGenerationSeed =" $(var.InstallDirectoryGuidSeed)" />
59
+ <?endif ?>
59
60
</Directory >
60
- <?endif ?>
61
+ </Fragment >
62
+
63
+ <Fragment >
64
+ <!-- Locate TARGETDIR automatically assuming we have executables installed -->
65
+ <Property Id =" TARGETDIR" >
66
+ <ComponentSearch Id =" PythonExe_Directory" Guid =" $(var.PythonExeComponentGuid)" >
67
+ <DirectorySearch Id =" PythonExe_Directory" AssignToProperty =" yes" Path =" ." >
68
+ <FileSearch Id =" PythonExe_DirectoryFile" Name =" python.exe" />
69
+ </DirectorySearch >
70
+ </ComponentSearch >
71
+ </Property >
72
+ <Property Id =" DetectTargetDir" Value =" 1" />
61
73
</Fragment >
62
74
63
75
<!-- Top-level directories -->
Original file line number Diff line number Diff line change 4
4
<Package InstallerVersion =" 300" Compressed =" yes" InstallScope =" perUser" Platform =" $(var.Platform)" />
5
5
<MediaTemplate EmbedCab =" yes" CompressionLevel =" high" />
6
6
7
+ <PropertyRef Id =" DetectTargetDir" />
7
8
<PropertyRef Id =" UpgradeTable" />
8
9
9
10
<Feature Id =" DefaultFeature" AllowAdvertise =" no" Title =" !(loc.Title)" Description =" !(loc.Description)" >
Original file line number Diff line number Diff line change 4
4
<Package InstallerVersion =" 300" Compressed =" yes" InstallScope =" perUser" Platform =" $(var.Platform)" />
5
5
<MediaTemplate EmbedCab =" yes" CompressionLevel =" high" />
6
6
7
+ <PropertyRef Id =" DetectTargetDir" />
7
8
<PropertyRef Id =" UpgradeTable" />
8
9
<PropertyRef Id =" REGISTRYKEY" />
9
10
Original file line number Diff line number Diff line change 4
4
<Package InstallerVersion =" 300" Compressed =" yes" InstallScope =" perUser" Platform =" $(var.Platform)" />
5
5
<MediaTemplate EmbedCab =" yes" CompressionLevel =" high" />
6
6
7
+ <PropertyRef Id =" DetectTargetDir" />
7
8
<PropertyRef Id =" UpgradeTable" />
8
9
<PropertyRef Id =" REGISTRYKEY" />
9
10
Original file line number Diff line number Diff line change 2
2
<Wix xmlns =" http://schemas.microsoft.com/wix/2006/wi" >
3
3
<Product Id =" *" Language =" !(loc.LCID)" Name =" !(loc.Title)" Version =" $(var.Version)" Manufacturer =" !(loc.Manufacturer)" UpgradeCode =" $(var.UpgradeCode)" >
4
4
<Package InstallerVersion =" 300" Compressed =" yes" InstallScope =" perUser" Platform =" $(var.Platform)" />
5
-
5
+
6
+ <PropertyRef Id =" DetectTargetDir" />
6
7
<PropertyRef Id =" UpgradeTable" />
7
8
<PropertyRef Id =" REGISTRYKEY" />
8
9
Original file line number Diff line number Diff line change 4
4
<Package InstallerVersion =" 300" Compressed =" yes" InstallScope =" perUser" Platform =" $(var.Platform)" />
5
5
<MediaTemplate EmbedCab =" yes" CompressionLevel =" high" />
6
6
7
+ <PropertyRef Id =" DetectTargetDir" />
7
8
<PropertyRef Id =" UpgradeTable" />
8
9
<PropertyRef Id =" REGISTRYKEY" />
9
10
Original file line number Diff line number Diff line change 4
4
<Package InstallerVersion =" 300" Compressed =" yes" InstallScope =" perUser" Platform =" $(var.Platform)" />
5
5
<MediaTemplate EmbedCab =" yes" CompressionLevel =" high" />
6
6
7
+ <PropertyRef Id =" DetectTargetDir" />
7
8
<PropertyRef Id =" UpgradeTable" />
8
9
<PropertyRef Id =" REGISTRYKEY" />
9
10
Original file line number Diff line number Diff line change 4
4
<Package InstallerVersion =" 300" Compressed =" yes" InstallScope =" perUser" Platform =" $(var.Platform)" />
5
5
<MediaTemplate EmbedCab =" yes" CompressionLevel =" high" />
6
6
7
+ <PropertyRef Id =" DetectTargetDir" />
7
8
<PropertyRef Id =" UpgradeTable" />
8
9
9
10
<Feature Id =" DefaultFeature" AllowAdvertise =" no" Title =" !(loc.Title)" Description =" !(loc.Description)" >
Original file line number Diff line number Diff line change 4
4
<Package InstallerVersion =" 300" Compressed =" yes" InstallScope =" perUser" Platform =" $(var.Platform)" />
5
5
<MediaTemplate EmbedCab =" yes" CompressionLevel =" high" />
6
6
7
+ <PropertyRef Id =" DetectTargetDir" />
7
8
<PropertyRef Id =" UpgradeTable" />
8
9
<PropertyRef Id =" REGISTRYKEY" />
9
10
You can’t perform that action at this time.
0 commit comments