ClickOnce installing in Documents and Settings\{user}\Local Settings\Apps\...

How do I get this to install in programs/{appname} with ClickOnce

Answer this question

ClickOnce installing in Documents and Settings\{user}\Local Settings\Apps\...

  • mani85

    You can't. Or at least the application can't. This FAQ says the administrator can change the location of the ClickOnce store. I've never looked into how to do that.

    http://www.windowsforms.net/FAQs/default.aspx PageID=1&CategoryID=24&tabindex=2

    Mike


  • Sigurd DeMizar

    Yea, I realized that it doesn't work.

    I was having a problem deploying a folder with a coupld of xml files with my application that it needs to run. It doesn't appear to get deployed. Not sure what's happening.


  • Dekadans

    they don't show up in application files list, even under show all. I did see that properties for the files allows you to copy to output folder which may fix the problem.


  • yCZAjezynski

    Xml files are marked as Data Files by default. This means they are put into the data folder. (See http://msdn2.microsoft.com/en-us/library/d8saf4wy.aspx for more information.) If you would like the xml files to be deployed in the same folder as your application, mark them as Include in the Applicaiton Files Dialog.

    Regards,

    Elizabeth Maher



  • Visuall

    In the solution explorer, change the Build Action property of your XML files to Content. This will include them in the application files list where you can then set their publish status to Include.
  • GrahamWade

    The Copy to Output Directory property will not help you in this situation. What that property does is copy the file to your bin folder on your local machine each time you build. This is useful for copying files like text files to the bin to be used with your application in debug mode after editing the original.
  • Umer Khan

    Is the Publish Status of your xml files set to "Include" under "Application Files..." in the Publish settings of your project If not, then ClickOnce doesn't know to include the files in the installation.
  • ClickOnce installing in Documents and Settings\{user}\Local Settings\Apps\...