Talk:LogicLib - UserIsAdmin
From NSIS Wiki
Jump to navigationJump to search
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.