Install application and database for all users

I am trying to use the latest version of inno to deploy my program. It seems that I can’t (and didn’t recommend) installing my program in the Program Files folder due to the limitations it will give (for example, my program will always have problems using the part of the program that modifies the database if it did not start as administrator). I read somewhere that we need to ask inno setup to install our program on CSIDL_APPDATA, but I'm not very good at configuring inno. How to do this using the Inno installation?

+5
source share
1 answer

The application itself must be installed in the folder under {pf}(Program Files). However, the data of the application (or database) must go into the folder under {commonappdata}. If the database should be modified by ordinary users, you need to set permissions for this folder (using the parameter Permissions). If it depends on the user, they can copy the default value to the user's appdata folder and change it.

[Dirs]
Name: {commonappdata}\i-Catcher Console; permissions: everyone-modify admins-full;

The difficulty arises when using the Access application, in which the user interface is embedded in the database. In this case, both locations are as bad as the others ( {commonappdata}/blahbetter marginally), but you will need to set the appropriate permissions.

+9
source

All Articles