chipbk10
chipbk10

Reputation: 5955

During .Net Deployment, how to copy a file into a specific folder?

I am developing an AddIn for PowerPoint 2013 using vsto, vs ultimate 2013, and c#. During the deployment (using Msi Installer, or ClickOnce, or ClickTwice), how can I copy my data (files) from the project solution into a specific folder on the user's machine?

I am quite new to .Net. Sorry for my probably ignorance.

Upvotes: 0

Views: 1739

Answers (2)

ShipOfTheseus
ShipOfTheseus

Reputation: 234

I had to deploy 6 add-ins(word\excel\powerpoint) in one application. I gave up figuring this out and used Advanced Installer. It was quite easy to deploy everything using it, if you can absorb the cost that is.

Upvotes: 0

Eugene Astafiev
Eugene Astafiev

Reputation: 49453

You simply need to include them to the installer as content files. See Deploying an Office Solution for more information.

Also you may find the How to deploy files with a clickonce application? forum thread helpful.

Take those files out of your \bin\debug folder and add them to your project. You can either add them to the top level of your project, or put them in a folder under the top level of your project. In the properties, set Build Action to 'content' and 'Copy to output directory' to "Copy always". They will be deployed relative to the top level of the deployment folders.

Upvotes: 2

Related Questions