AppData in Vista
Please help
Im trying to retreive the user appdata folder in Vista for standard user
and every time the installer return the folder of the admin account not the standard user folder.
-----
MessageBox MB_OK "APPDATA=$APPDATA"
ReadRegStr $1 HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "AppData"
MessageBox MB_OK "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders $\n $1"
ReadEnvStr $0 USERPROFILE
MessageBox MB_OK "ReadEnvStr USERPROFILE=$0"
System::Call "advapi32::GetUserName(t .r0, *i ${NSIS_MAX_STRLEN} r1) i.r2"
MessageBox MB_OK "user Name from System Call=$0"
------
These 4 msgbox return the path of the admin user in Vista
Is there a way to return the appdata path of the current standard user in Vista?
Thank you for a quick reply