Archive: APPDATA multiuser


APPDATA multiuser
I've been looking around using SetShellVarContext all, so I can install some data for all the users inside their appicaiton data directory, however SetShellVarContext all won't for doing this. Any ideas on how could I do this?

Thanks.


Its best if your application does this, but if you must http://nsis.sourceforge.net/EnumUsersReg will help you somewhat (get the path from the registy (a method not supported by Microsoft))


Thanks for your quick response. I tried this solution you sent, however it only list the user which I'm running the installer from, it doesn't see any other users. Is there other registry entry I could look for other than the download folder from IE? Also do you know how well this work on vista?

Thanks.


You can find some user names here:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList


Originally posted by jiake
You can find some user names here:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList
No! That is for the welcome screen in xp, and does not list all users

Just be clear this is the script I'm using

!include "EnumUsersReg.nsh"
Name EnumUsersReg
OutFile EnumUsersReg.exe

ShowInstDetails show

Section
${EnumUsersReg} CallbackFunction temp.key
SectionEnd

Function CallbackFunction

Pop $0

ReadRegStr $0 HKU "$0\Software\Microsoft\Internet Explorer" "Download Directory"
DetailPrint $0

FunctionEnd


and when I run this, it only returns one user(the one that I execute this program with). Any ideas??


Move the DetailPrint $0 above the ReadRegStr. Will give you better results.

Stu