mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 10:18:34 -06:00
Add explicit support for passing a `ADD_CMAKE_TO_PATH={0,1}` property to
`msiexec` command-line installations to control the checkbox. Also
preserve compatibility with the old `ADD_CMAKE_TO_PATH={None,System}`
property, which previously controlled the radio button group, by mapping
the values to the checkbox.
Remove the "Add CMake to the system PATH for the current user" option.
It actually added CMake to the installing user's PATH, not the system
PATH, even though CMake is installed to a system location.
Also revise the wording of the desktop shortcut checkbox to match
the style of the PATH checkbox wording.
Issue: #21465
26 lines
1.1 KiB
XML
26 lines
1.1 KiB
XML
<CPackWiXPatch>
|
|
<CPackWiXFragment Id="CM_DP_bin">
|
|
<!-- Implement the "CMAKE_IN_PATH" checkbox when installing for all users. -->
|
|
<Component Id="CMakeSystemPathEntryCMP" KeyPath="yes" Guid="0E782367-5D68-4539-81D1-B9757AE496A1">
|
|
<Condition>CMAKE_IN_PATH AND ALLUSERS</Condition>
|
|
<Environment Id="CMakeSystemPathEntryENV" Action="set" Part="last"
|
|
Name="PATH" Value="[INSTALL_ROOT]bin"
|
|
System="yes"/>
|
|
</Component>
|
|
|
|
<!-- Implement the "CMAKE_IN_PATH" checkbox when installing per-user. -->
|
|
<!-- This is not currently reachable, but is reserved for future use. -->
|
|
<Component Id="CMakeUserPathEntryCMP" KeyPath="yes" Guid="392E524D-D5BF-4F16-A7AF-A82B07482CB9">
|
|
<Condition>CMAKE_IN_PATH AND NOT ALLUSERS</Condition>
|
|
<Environment Id="CMakeUserPathEntryENV" Action="set" Part="last"
|
|
Name="PATH" Value="[INSTALL_ROOT]bin"
|
|
System="no"/>
|
|
</Component>
|
|
</CPackWiXFragment>
|
|
|
|
<CPackWiXFragment Id="#PRODUCTFEATURE">
|
|
<ComponentRef Id="CMakeSystemPathEntryCMP"/>
|
|
<ComponentRef Id="CMakeUserPathEntryCMP"/>
|
|
</CPackWiXFragment>
|
|
</CPackWiXPatch>
|