summaryrefslogtreecommitdiffstats
path: root/Modules/NSIS.template.in
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-05-13 20:57:49 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-05-13 20:57:49 (GMT)
commit8d88da106fd0cf716aff69219d72f0113d30802f (patch)
treeedcd854906a326176a2ba8c39e2fa758b2e5c1e1 /Modules/NSIS.template.in
parent9a4e1c5cff84fd13c821b5c5d24b5e39d68b19e1 (diff)
downloadCMake-8d88da106fd0cf716aff69219d72f0113d30802f.zip
CMake-8d88da106fd0cf716aff69219d72f0113d30802f.tar.gz
CMake-8d88da106fd0cf716aff69219d72f0113d30802f.tar.bz2
BUG: if CPACK_NSIS_MODIFY_PATH was OFF then the PATH was automatically modified
Diffstat (limited to 'Modules/NSIS.template.in')
-rw-r--r--Modules/NSIS.template.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/NSIS.template.in b/Modules/NSIS.template.in
index 2bdca5f..7aaf137 100644
--- a/Modules/NSIS.template.in
+++ b/Modules/NSIS.template.in
@@ -526,7 +526,8 @@ 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 $DO_NOT_ADD_TO_PATH "1" doNotAddToPath 0
+ StrCmp "@CPACK_NSIS_MODIFY_PATH@" "ON" 0 doNotAddToPath
+ StrCmp $DO_NOT_ADD_TO_PATH "1" doNotAddToPath 0
Call AddToPath
doNotAddToPath:
SectionEnd