summaryrefslogtreecommitdiffstats
path: root/Utilities/Release/WiX/patch_path_env.xml
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-12-18 15:55:35 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-12-18 15:55:35 (GMT)
commitf9e3ca46cbeae4fb885398e8f7b90c784078b1d3 (patch)
treebd0c8b159a29f3d88be6bd20eb10bbb58df9da39 /Utilities/Release/WiX/patch_path_env.xml
parent5ffdd37b7ff8279ffffbf8cc5a007a541be0d7ff (diff)
parent24cdb9df598a1c10fffc718255527729595442a1 (diff)
downloadCMake-f9e3ca46cbeae4fb885398e8f7b90c784078b1d3.zip
CMake-f9e3ca46cbeae4fb885398e8f7b90c784078b1d3.tar.gz
CMake-f9e3ca46cbeae4fb885398e8f7b90c784078b1d3.tar.bz2
Merge topic 'release-wix-config-ng'
24cdb9df CMake: Mimic NSIS options dialog in WiX installer de77d4a7 CPackWIX: Allow multiple patch files and diagnose if any are missing 38d723b3 CPackWIX: Allow patching of shortcut components
Diffstat (limited to 'Utilities/Release/WiX/patch_path_env.xml')
-rw-r--r--Utilities/Release/WiX/patch_path_env.xml26
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>