mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-22 07:48:32 -05:00
Utilities/Release/WiX: Modify PATH by default when installing on Windows
If the PATH modification choice has not been saved persistently by an existing installation of CMake, default to modifying the system PATH environment variable to make our command-line tools available for all users. This is a common expectation. Fixes: #21465
This commit is contained in:
@@ -2,5 +2,7 @@ rel-win-PATH
|
||||
------------
|
||||
|
||||
* The precompiled Windows ``.msi`` installers provided on
|
||||
`cmake.org <https://cmake.org/download/>`_, when replacing an existing
|
||||
installation, now preserve the ``PATH`` modification preference by default.
|
||||
`cmake.org <https://cmake.org/download/>`_, when performing a fresh
|
||||
installation, now modify the system-wide ``PATH`` by default.
|
||||
When replacing an existing installation, the ``PATH`` modification
|
||||
preference is preserved by default.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<Property Id="CMAKE_IN_PATH" Value="Init" />
|
||||
|
||||
<!-- Always initialize the checkbox value so it cannot be directly overridden from the command line. -->
|
||||
<SetProperty Action="Set_CMAKE_IN_PATH_Init" Id="CMAKE_IN_PATH" After="AppSearch" Sequence="first" Value="{}" />
|
||||
<SetProperty Action="Set_CMAKE_IN_PATH_Init" Id="CMAKE_IN_PATH" After="AppSearch" Sequence="first" Value="1" />
|
||||
|
||||
<!-- Read the "CMAKE_IN_PATH" checkbox value from the registry, if it was stored previously.
|
||||
Properties using RegistrySearch cannot be private, so use a private-looking public name. -->
|
||||
|
||||
Reference in New Issue
Block a user