mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 20:49:41 +00:00
BUG: if CPACK_NSIS_MODIFY_PATH was OFF then the PATH was automatically modified
This commit is contained in:
parent
9a4e1c5cff
commit
8d88da106f
@ -526,6 +526,7 @@ Section "Add to path"
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $DO_NOT_ADD_TO_PATH "NSIS.InstallOptions.ini" "Field 2" "State"
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $ADD_TO_PATH_ALL_USERS "NSIS.InstallOptions.ini" "Field 3" "State"
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $ADD_TO_PATH_CURRENT_USER "NSIS.InstallOptions.ini" "Field 4" "State"
|
||||
StrCmp "@CPACK_NSIS_MODIFY_PATH@" "ON" 0 doNotAddToPath
|
||||
StrCmp $DO_NOT_ADD_TO_PATH "1" doNotAddToPath 0
|
||||
Call AddToPath
|
||||
doNotAddToPath:
|
||||
|
Loading…
Reference in New Issue
Block a user