Old 13th July 2010, 17:19   #1
Pawel
Moderator
 
Pawel's Avatar
 
Join Date: Aug 2004
Location: Poland
Posts: 522
Send a message via ICQ to Pawel
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:
PHP Code:
Function .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
Pawel is offline   Reply With Quote
Old 14th July 2010, 00:08   #2
jpderuiter
Major Dude
 
Join Date: Feb 2007
Posts: 672
http://forums.winamp.com/showthread.php?threadid=285047
jpderuiter is offline   Reply With Quote
Old 14th July 2010, 01:23   #3
Pawel
Moderator
 
Pawel's Avatar
 
Join Date: Aug 2004
Location: Poland
Posts: 522
Send a message via ICQ to Pawel
Uff, UAC hell..
Thx
-Pawel
Pawel is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump