Write permissions on web.config - Advanced Installer Community
janisito
Posts: 86
Joined: Thu Apr 09, 2015 6:28 am

Write permissions on web.config

Hi,

Problem description: I am trying to set write permissions for my web.config file for "users" of my ASP .NET application hosted on IIS. The web.config file also contains appSettings which are populated from properties entered in the installation GUI. I can't find a way of putting permissions to this specific file (web.config) only to other folders and files. I'm suspecting it's because I have added the web.config file as a windows installer file since I need to change the appSettings. Is there any solution for this?

Thx,
Regards
janisito
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Write permissions on web.config

Hi Janisito and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

In order to set permissions for a Windows Installer file, you can add next to it a regular (not Windows Installer) empty file with the same name and set permissions for that file. During the installation, that empty file will be updated and the permissions will be set for it.

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
janisito
Posts: 86
Joined: Thu Apr 09, 2015 6:28 am

Re: Write permissions on web.config

Hi Eusebiu,

Thank you for your prompt reply. I will give that a try : )

Regards
Janisito

Return to “Common Problems”