|
|
#1 |
|
Junior Member
Join Date: Jul 2009
Posts: 8
|
"Elevation" on Windows XP: not always working
Hi,
I have an installer that needs to be run as administrator. On Vista: no problem, I get an elevation prompt. On XP: it works sometimes: -> When creating a simple local user with no rights on an XP machine, an login prompt shows up when I run the installer. This allows me to login as admin -> When logged in on a domain with a domain user (no admin rights), the installer just start to run (and then bumps into a security error). How come? How can I always force this login prompt to show up on XP? Thanks for you help! |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Why didn't you try searching the forums before you asked? This question has been asked hundreds of times before.
requestexecutionlevel admin and/or UserInfo plugin. |
|
|
|
|
|
#3 | |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
Quote:
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
|
#4 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Err, oops. Thanks for the fix, Anders.
|
|
|
|
|
|
#5 | |
|
Junior Member
Join Date: Jul 2009
Posts: 8
|
Quote:
The doc says about "RequestExecutionLevel": "Specifies the requested execution level for Windows Vista and Windows 7." My question is about XP. I already use the UserInfo plugin, so I can determine if I am admin or not. However I want to give this login prompt automatically, not a box saying "please run as admin". So why the inconsistent behaviour on XP? How to get it working? |
|
|
|
|
|
|
#6 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
You can use the UAC plugin to elevate in .onInit, that will runas a second instance of the installer, as admin. That should automatically display the login. (What do you currently use to get the login screen on XP? I don't think I've ever seen XP do that automatically.)
|
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jul 2009
Posts: 8
|
Thanks, I'm now looking into the UAC plugin.
It appears that the Windows XP I was using for my test has *something* installed on it, so the elevation prompt is automatically shown. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|