Archive: UAC Problem with Admin Users


UAC Problem with Admin Users
I used NSIS Installer with UAC plugin, because my programs requires regular users to install it with admin privileges. My desired functionality work properly with the regular users however when I'm installing it on an admin user's account it doesn't work, I can write registry on HKLM that means I may have admin rights, however I cannot successfully register my shellextentions and also after install I noticed my program was always asked by the UAC to elevate. this happens in Vista\7 admin users only. I'm using $APPDATA for my InstallDir, do you have any Idea why this is happening?

BTW: When I change my InstallDir to like $VIDEO it work properly so I'm assuming there is something wrong or there's something I missed when using the $APPDATA of admin users?


Just an idea:
If UAC is turned on: Even admin users need to elevate. Make sure you do.
If UAC is turned off: You shouldn't try to elevate if you're already admin. Make sure you don't.

As for your application requesting elevation, that's not related to NSIS. You'll need to fix your application yourself. (Probably need to fix the manifest.)


Thanks for the Idea. UAC is turned on: I'm elevating because when I run the installer the UAC will popup and since I'm installing it in admin user It will just ask if I will allow it or not.
My application's manifest was set to "AsInvoker" and also I didn't have the requesting elevation problem when I used other Installer.
When I changed my InstallDir to other directory like $VIDEO (just to test if it will work in other directory) it works.

I'm only having this issue with the admin users, it works with the regular users.


Hi guys I solved my problem, MSG your right it's not NSIS causing my application to elevate this is because of my machine there's is an existing registry in the AppCompatFlag layers making it runasadmin. Thanks!


Hello,

The VLC Player installer uses NSIS, correct? I think an update of Windows Vista is deny the installation of VLC. This is happening two weeks make. I do download the VLC (http://sourceforge.net/projects/vlc/...2.exe/download) and run the installer displays the following screen:
http://www.image-share.com/ijpg-1340...e jpg 1340-186

Someone is having the same problem? Any idea?