summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-02-07 20:33:01 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-02-07 20:33:01 (GMT)
commit6c7a622279a8d02cd01b7c19d7eb3091b3765a23 (patch)
treeadd22171d9c2b35bea0718a0c60967279aa975aa
parent45bba995381bd88895eb2e15ac9cdf91dc5c5080 (diff)
parentc4a0bcea775981dea86d527f66161c98f5e05e95 (diff)
downloadCMake-6c7a622279a8d02cd01b7c19d7eb3091b3765a23.zip
CMake-6c7a622279a8d02cd01b7c19d7eb3091b3765a23.tar.gz
CMake-6c7a622279a8d02cd01b7c19d7eb3091b3765a23.tar.bz2
Merge topic 'nsis-user-perm-issue-12923'
c4a0bce CPack: Fix NSIS handling of privileged users (#12923)
-rw-r--r--Modules/NSIS.template.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/NSIS.template.in b/Modules/NSIS.template.in
index 6259a5b..819cc5c 100644
--- a/Modules/NSIS.template.in
+++ b/Modules/NSIS.template.in
@@ -922,12 +922,12 @@ Function .onInit
Pop $0
UserInfo::GetAccountType
Pop $1
- StrCmp $1 "Admin" 0 +3
+ StrCmp $1 "Admin" 0 +4
SetShellVarContext all
;MessageBox MB_OK 'User "$0" is in the Admin group'
StrCpy $SV_ALLUSERS "AllUsers"
Goto done
- StrCmp $1 "Power" 0 +3
+ StrCmp $1 "Power" 0 +4
SetShellVarContext all
;MessageBox MB_OK 'User "$0" is in the Power Users group'
StrCpy $SV_ALLUSERS "AllUsers"