docs: better instructions for installing wixtoolset on Windows

If you try to follow the existing instructions, you might be greeted by
a long and useless error message when installing this which boils down
to the fact that the DotNet3.5 Chocolatey package actually requires a
reboot but does not properly ask for it. Enable-WindowsOptionalFeature
basically does the same as the Chocolatey package would do, but nicely
asks for a reboot after which the Chocolatey package can be installed
(which basically is a noop then) properly.
This commit is contained in:
Julian Brost 2020-10-26 09:06:06 +01:00
parent 0540fc25e2
commit cb218aee20

View File

@ -1961,9 +1961,11 @@ CMake uses CPack and NSIS to create the setup executable including all binaries
in addition to setup dialogues and configuration. Therefore well need to install [NSIS](http://nsis.sourceforge.net/Download) in addition to setup dialogues and configuration. Therefore well need to install [NSIS](http://nsis.sourceforge.net/Download)
first. first.
We also need to install the Windows Installer XML (WIX) toolset. We also need to install the Windows Installer XML (WIX) toolset. This has .NET 3.5 as a dependency which might need a
reboot of the system which is not handled properly by Chocolatey. Therefore install it first and reboot when asked.
``` ```
Enable-WindowsOptionalFeature -FeatureName "NetFx3" -Online
choco install -y wixtoolset choco install -y wixtoolset
``` ```