View Single Post
Old 18th March 2014, 01:29   #2
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
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:
RequestExecutionLevel admin

Section "Main"
SetShellVarContext current
MessageBox MB_OK "AppData is: $APPDATA" # notice that its the path to the admins folder not the current user's
SectionEnd


"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote