patch_path_env.xml 1.1 KB

1234567891011121314151617181920212223
  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. <!-- Implement the "CMAKE_IN_PATH" checkbox when installing per-user. -->
  10. <!-- This is not currently reachable, but is reserved for future use. -->
  11. <Component Id="CMakeUserPathEntryCMP" KeyPath="yes" Guid="392E524D-D5BF-4F16-A7AF-A82B07482CB9" Condition="CMAKE_IN_PATH AND NOT ALLUSERS">
  12. <Environment Id="CMakeUserPathEntryENV" Action="set" Part="last"
  13. Name="PATH" Value="[INSTALL_ROOT]bin"
  14. System="no"/>
  15. </Component>
  16. </CPackWiXFragment>
  17. <CPackWiXFragment Id="#PRODUCTFEATURE">
  18. <ComponentRef Id="CMakeSystemPathEntryCMP"/>
  19. <ComponentRef Id="CMakeUserPathEntryCMP"/>
  20. </CPackWiXFragment>
  21. </CPackWiXPatch>