Talk:LogicLib - UserIsAdmin: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Jump +4 bug fixed)
 
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


Corrected bug that prevented the restoration of the stack.
Corrected bug that prevented the restoration of the stack.
== 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.