Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to give Read/Write permissions to a Folder during installation using .NET
    text
    copied!<p>I have a Setup project that I have build using Visual Studio 2010.</p> <p>The installer works fine in terms of installing the application and all its dependencies into their proper sub directories and Program Data directories.</p> <p>However, I noticed that each directory (the root folder and all of its sub directories) that the installer created does not give "Write" permissions. The only permissions that are added to the directories for the "Users" group are:</p> <ul> <li>Read &amp; Execute </li> <li>List folder contents </li> <li>Read</li> </ul> <p>This, apparent default permissions setting, will happen regardless if the user installs the application as "Administrator" or not.</p> <p>It seems odd to me that the installer doesn't give "Write" permissions to a folder that is being used by the application that is getting installed - It's even more confusing that the folder that the installer creates in the <code>ProgramData</code> folder for the application's database doesn't get "Write" permissions. </p> <p>My question is, is there a way to configure the Setup project so that if and when it creates a folder, we can tell it what type of permissions to give it and to whom. In my case, I need give the root directory (of the application) and all of its sub directories, and the folder that is placed in the <code>ProgramData</code> folder "Read/Write" permissions for the "Users Group". Technically, I'm cool with giving the dirs "Full Control" to the "Users Group".</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload