Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6542465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:13:51+00:00 2026-05-25T11:13:51+00:00

I have a Setup project that I have build using Visual Studio 2010. The

  • 0

I have a Setup project that I have build using Visual Studio 2010.

The installer works fine in terms of installing the application and all its dependencies into their proper sub directories and Program Data directories.

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:

  • Read & Execute
  • List folder contents
  • Read

This, apparent default permissions setting, will happen regardless if the user installs the application as “Administrator” or not.

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 ProgramData folder for the application’s database doesn’t get “Write” permissions.

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 ProgramData folder “Read/Write” permissions for the “Users Group”. Technically, I’m cool with giving the dirs “Full Control” to the “Users Group”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:13:52+00:00Added an answer on May 25, 2026 at 11:13 am

    By default Users group doesn’t have write access in per-machine locations like Program Files. This is a Windows standard which is not related to installations. However, during install you can set any permissions you want.

    Windows Installer does support custom permissions, but Visual Studio doesn’t offer a way for setting them. So the only solution in Visual Studio is a custom action.

    Unfortunately Visual Studio doesn’t support attached custom actions. So using XCACLS.EXE to set permissions would work only if you include it in your package (it will be installed on the target machine along with your files).

    A cleaner, but more complex solution is to write a custom action yourself (using custom code) to set the permissions you want.

    The fastest and cleanest solution would be to use a different setup authoring tool which offers more control over permissions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a setup project using Visual Studio 2008. After the application is
I have a Visual Studio Setup Project that I use to install a fairly
I have created a custom dialog for Visual Studio Setup Project using the steps
I have a windows setup project that installs a service. All works well except
I have a really simple ASP.NET web application and a web setup project that
I have a setup project created by Visual Studio 2005, and consists of both
I am using installshield to build a setup project. I have one InstallScript type
I have a VS2005 deployment & setup project, that makes use of the Tablet
I have several Windows Service projects in one solution in Visual Studio 2010, they
I am working in Visual Studio 2008 and have a Windows Forms project +

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.