Merge topic 'nsis-user-perm-issue-12923'

c4a0bce CPack: Fix NSIS handling of privileged users (#12923)
This commit is contained in:
David Cole 2012-02-07 15:33:01 -05:00 committed by CMake Topic Stage
commit 6c7a622279
1 changed files with 2 additions and 2 deletions

View File

@ -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"