diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2015-12-10 22:55:07 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2015-12-17 14:57:30 (GMT) |
commit | 24cdb9df598a1c10fffc718255527729595442a1 (patch) | |
tree | 2d6ce6b54111e4fd92f4a8a6bec40f07d1aac55e /Utilities/Release/WiX/patch_path_env.xml | |
parent | de77d4a741c84e0b5774e79a0c84e945e25ad9f8 (diff) | |
download | CMake-24cdb9df598a1c10fffc718255527729595442a1.zip CMake-24cdb9df598a1c10fffc718255527729595442a1.tar.gz CMake-24cdb9df598a1c10fffc718255527729595442a1.tar.bz2 |
CMake: Mimic NSIS options dialog in WiX installer
Diffstat (limited to 'Utilities/Release/WiX/patch_path_env.xml')
-rw-r--r-- | Utilities/Release/WiX/patch_path_env.xml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Utilities/Release/WiX/patch_path_env.xml b/Utilities/Release/WiX/patch_path_env.xml new file mode 100644 index 0000000..0e335c4 --- /dev/null +++ b/Utilities/Release/WiX/patch_path_env.xml @@ -0,0 +1,26 @@ +<CPackWiXPatch> + <CPackWiXFragment Id="CM_DP_bin"> + <Component Id="CMakeSystemPathEntryCMP" KeyPath="yes" Guid="0E782367-5D68-4539-81D1-B9757AE496A1"> + + <Condition>ADD_CMAKE_TO_PATH = "System"</Condition> + + <Environment Id="CMakeSystemPathEntryENV" Action="set" Part="last" + Name="PATH" Value="[INSTALL_ROOT]bin" + System="yes"/> + </Component> + + <Component Id="CMakeUserPathEntryCMP" KeyPath="yes" Guid="392E524D-D5BF-4F16-A7AF-A82B07482CB9"> + + <Condition>ADD_CMAKE_TO_PATH = "User"</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> |