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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:57:17+00:00 2026-05-23T05:57:17+00:00

I have an Excel addin application which I developed with C# and I published

  • 0
  1. I have an Excel addin application which I developed with C# and I published to a network location using ClickOnce from VS2010.

  2. The application assumes that all the xml files that I use in it are in the same folder as the application itself.

  3. But when the user installs my app using ClickOnce

the application files are copied into one folder ( C:\Users\myUser\AppData\Local\Apps\2.0\4THJAWJK.HYG\5N2YL58D.X55\ical..vsto_d6a691f9c1918311_0006.0000_ac7a074687bf4c5e )

the Data files as xml are copied into other location ( C:\Users\myUser\AppData\Local\Apps\2.0\4THJAWJK.HYG\5N2YL58D.X55\ical…dll_d6a691f9c1918311_0006.0000_none_a70d8116aa98d903 )

The question is do I have any configuration in visual studio which will force all the files to be copied into one folder after the install or is there any other way to do it?

Thank you.

  • 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-23T05:57:18+00:00Added an answer on May 23, 2026 at 5:57 am

    I think there are a couple solutions to your problem depending on the intent of your XML file.

    Option #1
    If you are desiring to copy and XML file to the root install directory of your application each time that you publish the application, all you need to do is open your projects Properties dialog, go to the Publish tab and open the “Application Files…” dialog.

    By default, when an XML file is included with a project, ClickOnce specifies that these files should be published as a “Data File” (under the Publish Status option.)

    Change the Publish Status to Include, and the XML file will be copied to your installation folder, instead of the data folder.

    Option #2
    If you are looking to create an XML file that will be used for caching user-specific settings which should persist across application updates, I recommend outputing a default XML file as mentioned in step #1, however, when the application starts check to see if the XML file is in a settings folder that you have created within the User’s Profile folder. The first time that the application launches you will also need to check and see if your folder exists within the User’s Profile. If not, create it and copy your default XML file.

    Within your application, you can obtain the user’s data folder with the following line of code:

    string folder = System.Environment.GetFolderPath(System.Environment.SpecialFolder.UserProfile);
    

    You should have full access to the user’s profile folder for creation of folders and copying content, so you should have to worry about admin or special priviledges.

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

Sidebar

Related Questions

I'm writing an Excel Addin using COM Interop from .net. I have a command
I have an AddIn which I want to invoke through Excel interop from a
I have an Excel VSTO AddIn that I moved up to Excel 2007/VS2010 last
I have a VSTO addin that I published on a network share. In my
I have Excel add-in which I add so many class modules that it is
We have an Excel 2002/XP based application that interacts with SQL 2000/5 to process
I have an Excel application in which I want to present the user with
I have a Excel addin that displays some structures on the worksheet. Users can
I have some code in my project that reads from and writes into Excel
I have an Excel file (which has data imported from Oracle 10G Database) one

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.