HeReSY
1st February 2012 17:59 UTC
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
Afrow UK
1st February 2012 19:24 UTC
You have to use the UAC plug-in for this.
Stu
Anders
2nd February 2012 09:53 UTC
If you always need admin rights: http://pastebin.com/EvMkyLLt
MSG
2nd February 2012 11:30 UTC
Anders, he wants an automatic login popup, like the UAC plugin supplies during self elevation (kind of).
Anders
2nd February 2012 14:39 UTC
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
HeReSY
3rd February 2012 16:29 UTC
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.
Anders
3rd February 2012 16:37 UTC
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...