Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/Release/WiX/patch_path_env.xml
3154 views
1
<CPackWiXPatch>
2
<CPackWiXFragment Id="CM_DP_bin">
3
<!-- Implement the "CMAKE_IN_PATH" checkbox when installing for all users. -->
4
<Component Id="CMakeSystemPathEntryCMP" KeyPath="yes" Guid="0E782367-5D68-4539-81D1-B9757AE496A1" Condition="CMAKE_IN_PATH AND ALLUSERS">
5
<Environment Id="CMakeSystemPathEntryENV" Action="set" Part="last"
6
Name="PATH" Value="[INSTALL_ROOT]bin"
7
System="yes"/>
8
</Component>
9
10
<!-- Implement the "CMAKE_IN_PATH" checkbox when installing per-user. -->
11
<!-- This is not currently reachable, but is reserved for future use. -->
12
<Component Id="CMakeUserPathEntryCMP" KeyPath="yes" Guid="392E524D-D5BF-4F16-A7AF-A82B07482CB9" Condition="CMAKE_IN_PATH AND NOT ALLUSERS">
13
<Environment Id="CMakeUserPathEntryENV" Action="set" Part="last"
14
Name="PATH" Value="[INSTALL_ROOT]bin"
15
System="no"/>
16
</Component>
17
</CPackWiXFragment>
18
19
<CPackWiXFragment Id="#PRODUCTFEATURE">
20
<ComponentRef Id="CMakeSystemPathEntryCMP"/>
21
<ComponentRef Id="CMakeUserPathEntryCMP"/>
22
</CPackWiXFragment>
23
</CPackWiXPatch>
24
25