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 4064486
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:51:42+00:00 2026-05-20T15:51:42+00:00

I have a plain old Windows Forms application with a WiX installer, and it

  • 0

I have a plain old Windows Forms application with a WiX installer, and it is installed for all users to the Program Files folder as you would expect. The application hosts add-ins using the System.AddIn framework.

Because the System.AddIn framework needs to write to some of the add-in pipeline folders (AddIns, AddInSideAdapters, AddInViews, Contracts and HostSideAdapters) I don’t know the best place to install the add-ins to. I can’t install to Program Files because the user won’t have write permission, and if I install to the user’s Application Data folder then the add-ins won’t be installed for any other users.

I realise that there are conflicting requirements here (users can’t mess with other users’ add-ins, the add-ins need to be installed for all users and all users need permission to write) but what is the best practical route to take?

It’s a shame that the files the System.AddIn framework needs to write can’t be stored separately in Application Data, but that seems to be a limitation of the framework.

  • 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-20T15:51:42+00:00Added an answer on May 20, 2026 at 3:51 pm

    I know this question was asked a long time ago, but…

    Have you tried Environment.SpecialFolder.CommonApplicationData?

    In Vista/Windows 7, this folder is: %ProgramData%. I’m not 100% sure what it is in Windows XP, but it’s probably %ALLUSERSPROFILE%.

    In any case, this folder should have permission to read/write and be the same for all users.

    Don’t forget to create a subfolder for your company/application name:

    string companyName = "My Company";
    string folderPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
    string path = Path.Combine(folderPath, companyName);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Win32 GUI application that has several edit controls (plain old EDIT
I am about to develop a program which will be installed and run as
My product has several components: ASP.NET, Windows Forms App and Windows Service. 95% or
I need to start 1-3 external programs in my Java application that have paths
The environment is plain-old win32 under C/C++ without any fancy MFC or similar mumbo-jumbo.
I work in a Windows environment and would prefer to deploy code to IIS.
I have a BizTalk 2006 app which has a sendport using MSMQ. I have
I am not a web developer but I do have a lot of programming
We have a system at my work that is basically a message-driven state machine.
Imagine I have two (three, four, whatever) tasks that have to run in parallel.

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.