![]() |
#1 |
Junior Member
Join Date: May 2012
Posts: 20
|
Obtain Current Users %APPDATA% Path and not Admins
Hello
I am looking to get the path to the current users %APPDATA% folder. Note: I am aware of the variable $APPDATA BUT if you run your installer with RequestExecutionLevel admin then $APPDATA will point to the admins roaming folder and NOT the current user's app data folder. I need to find out the current users %APPDATA% path so I can write files to their roaming directory. Does anyone know how I can find this out? code: |
![]() |
![]() |
![]() |
#2 |
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 906
|
Try 'SetShellVarContext current'. Probably won't work since the installer runs under the admin user account (can't test this right now because I'm on linux).
code: "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
![]() |
![]() |
![]() |
#3 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You should probably use the UAC plug-in to do this.
Stu |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|