Windows MSI: Add Upgrade Code and migration tool build options to NEXTCLOUD.cmake
authorMichael Schuster <michael@schuster.ms>
Sat, 5 Sep 2020 02:25:49 +0000 (04:25 +0200)
committerMichael Schuster <michael@schuster.ms>
Mon, 21 Sep 2020 14:40:19 +0000 (16:40 +0200)
commitfad9b2c96910d04d8756e7ef47161830b032e4a2
treed8a44e36c097151c89278d1338a18f589d79128a
parent58b88de93692b36af80fbbb31ebe18ffafdac8d6
Windows MSI: Add Upgrade Code and migration tool build options to NEXTCLOUD.cmake

The Upgrade Code is a GUID (specified without brackets) for the MSI package to allow Windows Installer identify existing installations.

New build options (default: OFF):
- BUILD_WIN_MSI: Build all MSI scripts and a required helper DLL (to uninstall NSIS legacy installations and remove Explorer Navigation Pane entries)
- BUILD_WIN_TOOLS: Build additional migration tools (currently NCNavRemove, a stand-alone tool for Explorer entries removal)

The helper DLL and migration tools are set to be statically linked and optimized for binary size.

Signed-off-by: Michael Schuster <michael@schuster.ms>
NEXTCLOUD.cmake