Talk:LogicLib - UserIsAdmin: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(→UAC/elevation issues: new section) |
|||
Line 4: | Line 4: | ||
== UAC/elevation issues == | == UAC/elevation issues == | ||
<strike> | |||
This does not work on UAC-enabled systems (like Vista, 7, 8, 8.1). A user, that has admin rights will always be reported to be Administrator (which is correct), even if the installer is not running with elevated rights - which makes this check rather useless. | |||
The expected behavior should be: If program is elevated, do report admin rights, if not elevated, do not report admin rights.</strike> | |||
There was a bug in the CheckTokenMembership handling, should work now. |
Latest revision as of 19:44, 4 March 2014
Jump +4 bug fixed
Corrected bug that prevented the restoration of the stack.
UAC/elevation issues
This does not work on UAC-enabled systems (like Vista, 7, 8, 8.1). A user, that has admin rights will always be reported to be Administrator (which is correct), even if the installer is not running with elevated rights - which makes this check rather useless.
The expected behavior should be: If program is elevated, do report admin rights, if not elevated, do not report admin rights.
There was a bug in the CheckTokenMembership handling, should work now.