Skip to content
⌘ NSIS Forum Archive

Instalation directory

7 posts

kzchris#

Instalation directory

Hi,
In my instalator I use
InstallDir "$PROGRAMFILES\foo"
as an installation directory.
In my program I use a configuration file (one for every user), which changes every time any user uses the program. The configuration file now is placed in the same directory as exe file.

The problem is in windows 7 when the user has not admin rights – my program have no rights to change the configuration file.

In which directory should I place the config file to solve the problem or what else should I do?

Regards,
Chris
Wizou#
if you want the *same* configuration file to be accessible for all the users that have an account on the machine, don't forget to use
SetShellVarContext all
before
SetOutPath $APPDATA
kzchris#
How can I make InstallDir to point at $APPDATA for all users, if I can’t use “SetShellVarContext all” outside the section?