Setting folder permissions - Advanced Installer Community
LoadMike
Posts: 5
Joined: Thu May 30, 2013 4:17 pm

Setting folder permissions

Hi,
I don't know if Im missing something in the documentation, but I have an install where I want to add a user with full permissions to the install folder.
Now after the install the user is granted full permission to the folder but the local admin user that would normally show up in the folder security tab is no longer there. So basically my user is replacing current users instead of being added.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Setting folder permissions

Hello,

I'm afraid this is our default implementation. When you add permissions using our "Permissions" support the related permissions will replace the default ones, they will not be appended to the default (inherited) ones. However, in order to achieve what you want you can use a custom action to add permissions on an installation folder.

Also, you can take a look on our "Filesystem permissions do not flow to sub folders" thread which could be useful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aron
Posts: 1
Joined: Fri Sep 19, 2014 9:06 pm

Re: Setting folder permissions

Daniel wrote:However, in order to achieve what you want you can use a custom action to add permissions on an installation folder.
Hello, can you please provide a little more information on how to add a permission to a folder using custom actions? I don't want to replace the entire permission set on the folder. For instance, I just want to add the 'write' permission on a folder for the "IIS_IUSRS" group.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Setting folder permissions

Hello,

For example you can use XCACLS tool from a Launch File predefined custom action.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Setting folder permissions

Hello,

The support for appending permissions to existing folders/registry during installations has been added in version 12.1 of Advanced Installer released on May 19th, 2015.

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

Return to “Common Problems”