99999999
6th February 2008 21:15 UTC
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.
Anders
6th February 2008 21:24 UTC
See \NSIS\Examples\UserInfo
RequestExectionLevel admin is probably wise to add aswell
99999999
6th February 2008 22:18 UTC
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.
Anders
6th February 2008 22:34 UTC
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