Utilities/Release/WiX: Modify PATH by default when installing on Windows
Enable the PATH modification checkbox by default to make our command-line tools available for all users. This is a common expectation.
Save the checkbox setting persistently in the Windows Registry and use the same choice by default in future installations.
In scripted installations using msiexec
, honor ADD_CMAKE_TO_PATH={0,1}
if it is given on the command line. Otherwise, honor the registry value from an existing installation, if any. Otherwise, fall back to the new default and enable PATH modification.
Fixes: #21465 (closed)