Archive: RequestExecutionLevel problem...


RequestExecutionLevel problem...
  Hi,
I got problem with NSIS "RequestExecutionLevel" command.

Could someone explain me why do I need that (on Win7, Vista)?

I always use RequestExecutionLevel "admin". Thanks to this, I could do with my installer things with admin rights (as I understand it).

But, there is a problem. I am logged in on Normal User account with UAC enabled.
When I use this: RequestExecutionLevel "admin" Windows prompt for admin password.
OK.
Now, I want to check what is the result of $Appdata variable. Let's see below example:


oninit

MessageBox MB_OK "$Appdata"
>FunctionEnd
>
As a result I got Appdata path for Admin user(!) (not an account that I am logged in).
Should be: C:\Users\Pawel_StandardUser\AppData
I got: C:\Users\Pawel\AppData (my admin account)

Is this normal? if I request admin, I am logged in as Administrator? How can I get then appdata path of account that I am logged in...

If I use here RequestExecutionLevel "user" or "highest" the result path is OK...
Please, anybody give me some explanation... i am totally lost...

Thanks,
-Pawel

http://forums.winamp.com/showthread.php?threadid=285047


Uff, UAC hell..
Thx
-Pawel