diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2017-02-03 08:02:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-06 19:53:16 (GMT) |
commit | 558a69fc90b5037c13c8335af41bbc9ec03b004e (patch) | |
tree | 2b208eef1d91d71b7f08aeaaf0c2260f346dca9e /Modules/CPackWIX.cmake | |
parent | fddc01bab3352d12c0eba1ff781b359a7dec529c (diff) | |
download | CMake-558a69fc90b5037c13c8335af41bbc9ec03b004e.zip CMake-558a69fc90b5037c13c8335af41bbc9ec03b004e.tar.gz CMake-558a69fc90b5037c13c8335af41bbc9ec03b004e.tar.bz2 |
CPackWIX: Introduce new CPACK_WIX_ROOT_FOLDER_ID variable
The new variable allows specification of a custom root folder ID.
The implicit default is "ProgramFiles<64>Folder".
The "<64>" token is replaced by "" for 32-bit and "64" for 64-bit builds.
Inspired-By: Eric Backus
Fixes: #16573
Diffstat (limited to 'Modules/CPackWIX.cmake')
-rw-r--r-- | Modules/CPackWIX.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/CPackWIX.cmake b/Modules/CPackWIX.cmake index 0f2278f..5a36e4c 100644 --- a/Modules/CPackWIX.cmake +++ b/Modules/CPackWIX.cmake @@ -268,6 +268,17 @@ # follow the localization or convention of the system on which the # installation is performed. # +# .. variable:: CPACK_WIX_ROOT_FOLDER_ID +# +# This variable allows specification of a custom root folder ID. +# The generator specific ``<64>`` token can be used for +# folder IDs that come in 32-bit and 64-bit variants. +# In 32-bit builds the token will expand empty while in 64-bit builds +# it will expand to ``64``. +# +# When unset generated installers will default installing to +# ``ProgramFiles<64>Folder``. +# if(NOT CPACK_WIX_ROOT) file(TO_CMAKE_PATH "$ENV{WIX}" CPACK_WIX_ROOT) |