slickgoonie
1st April 2008 03:26 UTC
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.
Anders
1st April 2008 03:34 UTC
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))
slickgoonie
1st April 2008 07:33 UTC
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.
jiake
1st April 2008 08:37 UTC
You can find some user names here:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList
Anders
1st April 2008 08:48 UTC
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
slickgoonie
1st April 2008 18:20 UTC
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??
Afrow UK
1st April 2008 18:50 UTC
Move the DetailPrint $0 above the ReadRegStr. Will give you better results.
Stu