Archive: Popup for Admin rights


Popup for Admin rights
Hi all,

i have an installer, that installs several files and programs to the pc.
but now i want that the user can't install the program without admin rights.
First i made a MessageBox that pops up when the user has no admin right, but this is not very useful.
Is it possible to popup the windows dialog for admin rights, so the user has to enter the password for it. After that the installer should run in admin mode.

Every help i apreciated

HeReSY


You have to use the UAC plug-in for this.

Stu


If you always need admin rights: http://pastebin.com/EvMkyLLt


Anders, he wants an automatic login popup, like the UAC plugin supplies during self elevation (kind of).


I understand but it is not a good idea IMHO, keep it simple and all that, besides it will give you the UAC icon overlay etc


Thanks a lot for your answers.
@Anders: At the moment i use somthing like that you mentioned. but i don't want it in the future versions. It would be better, if there is a popup for the admin etc.

I will give UAC a try.

I tested it, but at there are several errors to compile the test scripts.


I just don't see the point, on < Vista most people are admin and on >= Vista most people have UAC on so they would get the elevation prompt before the app starts...