Oleksandr
Posts: 15
Joined: Tue Dec 04, 2012 11:09 am

How to inherit permissions from the parent folder?

Dear support,

Could you please let us know how to inherit the permissions for all the groups and users from the parent folder?
We set the Read & execute, List folder contents, Read permissions for the "Authenticated Users" group on the folder that is created by the installer.
And during the installation these permissions are granted to this group, but nothing is inherited from the parent directory.
Looking forward to your reply.
Thank you.

Kind regards,
Oleksandr
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to inherit permissions from the parent folder?

Hello Oleksandr,

In order to achieve what you want you want you can enable the "Apply permissions to all subfolders" option from "Permissions" tab.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Oleksandr
Posts: 15
Joined: Tue Dec 04, 2012 11:09 am

Re: How to inherit permissions from the parent folder?

Dear support,

Thank you for the reply.
I'm very sorry for misleading you in the question.
As far as I understand enabling the "Apply permissions to all subfolders" option applies the set permissions to all subfolders within the currently installed folder.
But we have different requirement. Say, the application is installed to the "C:\Program Files(x86)\" folder, and there are some permissions applied to this folder.
During the installation we need to inherit those permissions from "C:\Program Files(x86)\" folder (this is only the example, the target folder is specified during the installation, so it could look like "D:\Applications" or whatever) and apply them to the folder and all its subfolders created by the installer alongside with the Read & execute, List folder contents, Read permissions for the "Authenticated Users" group.
Please let us know how we can achieve this.
Looking forward to your reply.
Thank you.

Kind regards,
Oleksandr
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to inherit permissions from the parent folder?

Hello Oleksandr,

Please keep in mind this should be the default Windows Installer behavior, if you didn't explicitly set permissions in the "Edit Folder -> Permissions" tab. Unfortunately, it seems Windows Installer doesn't always support this. Please take a look on our Filesystem permissions do not flow to sub folders thread.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”