Utilities/Release/WiX: Simplify specification of CMake registry value

This commit is contained in:
Brad King
2024-03-27 10:22:27 -04:00
parent 68e9454abe
commit 9e831a6211

View File

@@ -39,16 +39,13 @@
<?endif?>
<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 Id="CMakeRegistry_InstallDir">
<RegistryValue Root="HKLM" Key="Software\Kitware\CMake" Name="InstallDir" Type="string" Value="[INSTALL_ROOT]" />
</Component>
</DirectoryRef>
<FeatureRef Id="ProductFeature">
<ComponentRef Id="CMakeRegistry"/>
<ComponentRef Id="CMakeRegistry_InstallDir" />
</FeatureRef>
<UIRef Id="$(var.CPACK_WIX_UI_REF)" />