Carlo
Carlo

Reputation: 25959

Application Deployment

I deployed an application using this method and it worked very good. However, there are 2 missing things that I been trying to find but can't:

1) How do I include resource files in the installation? I have a folder with files that have some user data, and those need to be there after the installation so the application can run, this is an oversimplified example I'm working on (I need to include NecessaryFile1.xml, NecessaryFile2.xml and NecessaryFile3.xml and the folder they're in):

alt text http://img193.imageshack.us/img193/7782/resources.png

2) How can I put the application in the start -> programs menu? It doesn't seem to do that either. It just puts it in the C:\Program Files\My Company Name\ApplicationName\ directory.

Thanks for any suggestion!

Upvotes: 2

Views: 194

Answers (2)

MusiGenesis
MusiGenesis

Reputation: 75296

Go to your Setup project in Visual Studio. In the "File System" tab, locate "Application Folder". Right-click and then click Add | Folder. Name the new folder "Data". Right-click on the new "Data" folder and click Add File, then add the needed XML files. Repeat for as many different folders and/or files as required by your application.

When you compile and run your setup project, the "Data" folder and its contents will be deployed along with the application.

Upvotes: 1

Jared Updike
Jared Updike

Reputation: 7277

Click on each XML file in the Solution Explorer and then in the Properties window below (see your screenshot) you click and change "Build Action" to "Copy" and "Copy to Output Directory" to "Copy If Newer". That does the trick for me, at least with ClickOnce...

Upvotes: 0

Related Questions