mindwarp
20th May 2006 11:03 UTC
Install for All Users
Hi,
What do I have to do to my script to Install it for all users?
Also, I've noticed that NSIS writes to the registry HKLM. My program has to write to HKCU.
I've found that with a limited user account on XP and W2003 my program cannot write to HKLM. However my program can not write to 'Program Files' so I guess the Installer must have special rights?
Thanks in advance,
Juls.
Red Wine
20th May 2006 12:55 UTC
See NSIS documentation 4.9.7.6 SetShellVarContext
and feel free to change the script from HKLM to HKCU
according to your needs.
mindwarp
21st May 2006 09:08 UTC
Hi,
Thanks...
Which section would SetShellVarContext go in ?
Also... I've tried my setup on a XP Limited user account and it doesn't have access to 'program Files', what should I do in this scenario?
Thanks...
Red Wine
21st May 2006 12:30 UTC
Which section would SetShellVarContext go in ?
I could not explain better than NSIS manual. Did you read the documentation carefully?
Also... I've tried my setup on a XP Limited user account and it doesn't have access to 'program Files', what should I do in this scenario?
This scenario depends on several "your setup" parameters, e.g. if you attempt to start/stop/alter services, or if you mess with drivers, network config, etc etc etc, it is obvious that a limited user has not access, so you should do a check for admin account and inform users that they need admin rights to continue. I'd suggest try to make a simple setup, just to install some files and write InstallDirRegKey and uninstall info under HKCU, run it on guest account and see what happens.