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

  • SEARCH
  • Home
  • 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 7791775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:59:36+00:00 2026-06-01T21:59:36+00:00

I am generating an install project in Visual Studio 2010 for a C# addin

  • 0

I am generating an install project in Visual Studio 2010 for a C# addin to be used with Microsoft Excel. My addin uses an SQLite database, and this database needs to have write permissions for the user working with the addin.

The problem is that I also need to write to the registry in HKLM and the Program Files directory. To do this, the installer must run with elevated permissions, which is not a problem, but when I do so, the database is set to require admin rights to write, which is an issue, despite being played in the CommonAppData folder which does not require admin rights.

Is it possible to set the database to not require admin rights in the install project? I have at my disposal to work with: Visual studio install projects, Installshield 2008 and Installshield 2012.

I found an almost identical question to mine posted here: Visual Studio installer project – setting file permission

The msdn link, however, is dead and the other link only suggests putting the files in a location that does not require elevated permissions.

(Note: I have, for the purposes of testing, simply removed the portion of the files that need to be put in program files, and written to HKCU so that I can get around this issue temporarily; however this is not going to be suitable for deployment as this is going to be added to a much larger project that needs to have these issues resolved.)

  • 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-06-01T21:59:38+00:00Added an answer on June 1, 2026 at 9:59 pm

    CommonAppData folder is a per-machine location, so it requires Administrator privileges. Any folder that can be accessed by multiple user accounts requires elevation for writing.

    AppDataFolder is the one which doesn’t require Administrator privileges, but its content is only for the current user account.

    You can try setting permissions for your custom folder in CommonAppData. Perhaps this article will help: http://setupanddeployment.com/installation-environment/set-permissions-installation-folder/

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

Sidebar

Related Questions

I was following this tutorial http://nepomucenobr.com.br/blog/post/Generating-e2809cdummy-datae2809d-with-Visual-Studio.aspx and I got to the point where I
I'm working with a project that uses twitter-bootstrap-rails. This project was built on a
(I'm running Windows7 and using Visual Studio 2010.) I'm using ClamAV in a .NET
Generating normal columnar data in excel file is quite easy but does any one
I'm generating some xml files that needs to conform to an xsd file that
Can't overcome problem. Everytime i generating new rails project on windows get the massage:
I've noticed that when generating a new rails project, the Gemfile now defaults to:
I'm trying to install the Comport package in a Embarcadero RAD Studio XE. For
I'm working with generating .pdf's from PHP using this library: http://www.fpdf.org/ I am currently
Having written a CGI application in Visual Studio 2008 and debigged it locally, I

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.