Archive: Determining If a user is a Limited Access User?


Determining If a user is a Limited Access User?
Is there any means of determine whether or not a user is a Limited Access User, already built into NSIS? If not, does someone else already do this?

The installer will not complete successfully in this mode, and we would like to give the user a more graceful response.


See \NSIS\Examples\UserInfo

RequestExectionLevel admin is probably wise to add aswell


Hmm so it appears I have to be an Admin to run this check on Vista, and the application runs in the context of the Admin user. So of course, the response is that the user always has Admin access.

What I am looking for is something not requiring the user to need extra privileges to determine if they are not an Admin.


just use the userinfo plugin then.

If you need admin rights, but still need to do things in the context of the "logged in" user, you might need to use the UAC plugin