Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   AppData in Vista (http://forums.winamp.com/showthread.php?t=262649)

fatcat007 29th December 2006 03:50

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


All times are GMT. The time now is 04:35.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.