Program Data Security - Advanced Installer Community
nikoschroeder
Posts: 1
Joined: Tue Jun 07, 2022 4:24 am

Program Data Security

Hi;

I have an installation that prepares a ProgramData folder for the application to store common data. We are converting our system to run in a non admin mode and will need to make sure the ProgramData folder is prepared/adjusted to allow all access to a non admin user. We have found the permission options within the edit folder location. We have adjusted so that the base ProgramData folder is adjusted to allow all data to be accessible at this level and below. We though have scenarios where the program data folder has been prepared on previous installs and files exist already within the ProgramData folder that are not accessible to a non admin user. When we run after the ProgramData folder access level option have been changed - the already existing files are still left with limited access and cannot access from the non admin user run.

What we would like to know is - is there a way to prepare the ProgramData folder options and apply to already existing files as well?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Program Data Security

Hello and welcome to our forums,
What we would like to know is - is there a way to prepare the ProgramData folder options and apply to already existing files as well?
To be fully honest with you, I do not believe we have built-in support to change the permissions on the files from a folder.

We have the option to apply the permissions to all subfolders of a folder, but I am not quite sure if this will also affect the files from the folder.

If that does not help, I'm afraid the only way to achieve this would be through a custom action.

For instance, you could have a script that would loop through the files of that folder and apply the required permissions for each.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”