diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2019-03-12 07:58:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-03-12 13:39:35 (GMT) |
commit | 7593bdf4e88b6a5da60e6fa9d4ba05a378d5d7d4 (patch) | |
tree | 85ab6995b6f5bbd66c606e80cb00e1a235bfd249 /Utilities | |
parent | 30c3effa89ceda247cd2ff29b5d3f4da8c7a8ff6 (diff) | |
download | CMake-7593bdf4e88b6a5da60e6fa9d4ba05a378d5d7d4.zip CMake-7593bdf4e88b6a5da60e6fa9d4ba05a378d5d7d4.tar.gz CMake-7593bdf4e88b6a5da60e6fa9d4ba05a378d5d7d4.tar.bz2 |
CMake: Fix WiX installer downgrades with versioned binaries
Since commit 5b9da05b7a (Windows: Embed version information into CMake
binaries, 2017-10-25, v3.11.0-rc1~411^2) our binaries have version
information that prevents a `.msi` downgrade from replacing them by
default. Configure the re-install mode:
* a: reinstall all files regardless of version
* m: rewrite all per-machine registry entries
* u: rewrite all per-user registry entries
* s: reinstall shortcuts and icons
Fixes: #19006
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/Release/WiX/WIX.template.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/Release/WiX/WIX.template.in b/Utilities/Release/WiX/WIX.template.in index fe176ca..8abf9d8 100644 --- a/Utilities/Release/WiX/WIX.template.in +++ b/Utilities/Release/WiX/WIX.template.in @@ -20,6 +20,8 @@ Schedule="afterInstallInitialize" AllowDowngrades="yes"/> + <Property Id="REINSTALLMODE" Value="amus"/> + <WixVariable Id="WixUILicenseRtf" Value="$(var.CPACK_WIX_LICENSE_RTF)"/> <Property Id="WIXUI_INSTALLDIR" Value="INSTALL_ROOT"/> |