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
Instalation directory
7 posts
Make a folder in $APPDATA.
Stu
Stu
Ok, thanks I will try.
Regards,
Chris
Regards,
Chris
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
SetShellVarContext all
before
SetOutPath $APPDATA
How can I make InstallDir to point at $APPDATA for all users, if I can’t use “SetShellVarContext all” outside the section?
In .onInit you can do:
SetShellVarContext all
StrCpy $INSTDIR $APPDATA
Stu
SetShellVarContext all
StrCpy $INSTDIR $APPDATA
Stu
It works 😉
Thanks
Thanks