summaryrefslogtreecommitdiffstats
path: root/Modules/Internal
diff options
context:
space:
mode:
authorSprite <SpriteOvO@gmail.com>2023-09-04 19:51:01 (GMT)
committerBrad King <brad.king@kitware.com>2023-09-05 17:39:00 (GMT)
commitd3bfe0ea4424c13deb9647358b36432db235386d (patch)
tree9072ef6ee14e98312784921417fd4d64bfaf9644 /Modules/Internal
parent4e02834eee07c20e2ddcb03e233925fc35fc040d (diff)
downloadCMake-d3bfe0ea4424c13deb9647358b36432db235386d.zip
CMake-d3bfe0ea4424c13deb9647358b36432db235386d.tar.gz
CMake-d3bfe0ea4424c13deb9647358b36432db235386d.tar.bz2
CPack/NSIS: Fix incorrect jump for standard user
Revert an incorrect change from commit c4a0bcea77 (CPack: Fix NSIS handling of privileged users, 2012-02-01, v2.8.8~230^2). Fixes: #13939
Diffstat (limited to 'Modules/Internal')
-rw-r--r--Modules/Internal/CPack/NSIS.template.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Internal/CPack/NSIS.template.in b/Modules/Internal/CPack/NSIS.template.in
index 21753af..6349f9d 100644
--- a/Modules/Internal/CPack/NSIS.template.in
+++ b/Modules/Internal/CPack/NSIS.template.in
@@ -981,7 +981,7 @@ inst:
;MessageBox MB_OK 'User "$0" is in the Admin group'
StrCpy $SV_ALLUSERS "AllUsers"
Goto done
- StrCmp $1 "Power" 0 +4
+ StrCmp $1 "Power" 0 +3
SetShellVarContext all
;MessageBox MB_OK 'User "$0" is in the Power Users group'
StrCpy $SV_ALLUSERS "AllUsers"