summaryrefslogtreecommitdiffstats
path: root/Utilities/Release
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2016-12-05 15:05:19 (GMT)
committerNils Gladitz <nilsgladitz@gmail.com>2016-12-05 15:05:19 (GMT)
commit1b91e010bccaf1c93574c04197fb1e8b75b6c50a (patch)
treebb2aad54d628f7df20dd724ee23379fdd07fb6ce /Utilities/Release
parentc45b767a8c2120ba61b9fafa31d8db37a919d62a (diff)
downloadCMake-1b91e010bccaf1c93574c04197fb1e8b75b6c50a.zip
CMake-1b91e010bccaf1c93574c04197fb1e8b75b6c50a.tar.gz
CMake-1b91e010bccaf1c93574c04197fb1e8b75b6c50a.tar.bz2
Utilities/Release: Store WiX CMake install location in Windows registry
Diffstat (limited to 'Utilities/Release')
-rw-r--r--Utilities/Release/WiX/WIX.template.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/Utilities/Release/WiX/WIX.template.in b/Utilities/Release/WiX/WIX.template.in
index 094999f..fe176ca 100644
--- a/Utilities/Release/WiX/WIX.template.in
+++ b/Utilities/Release/WiX/WIX.template.in
@@ -36,7 +36,18 @@
<WixVariable Id="WixUIDialogBmp" Value="$(var.CPACK_WIX_UI_DIALOG)"/>
<?endif?>
- <FeatureRef Id="ProductFeature"/>
+ <DirectoryRef Id="TARGETDIR">
+ <Component Id="CMakeRegistry">
+ <RegistryKey Root="HKLM" Key="Software\Kitware\CMake">
+ <RegistryValue Type="string" Name="InstallDir"
+ Value="[INSTALL_ROOT]" KeyPath="yes"/>
+ </RegistryKey>
+ </Component>
+ </DirectoryRef>
+
+ <FeatureRef Id="ProductFeature">
+ <ComponentRef Id="CMakeRegistry"/>
+ </FeatureRef>
<UIRef Id="$(var.CPACK_WIX_UI_REF)" />