Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to deploy some data files with my application, currently in the Application.UserAppDataPath. How can I ensure that this data is copied when someone else installs this on their computer?
Thanks in advance, Mick
Posted

The setup wizard allows for custom actions, like even running attached .exe files. You can build a seperate .exe file that is there solely for copying the files.

To add custom actions right click on the setup project and go to View and then Custom Actions.
Then just add the file copier as the action.
 
Share this answer
 
v2
Comments
Tynycae 27-Oct-11 17:17pm    
Many thanks Collin and Mark
[no name] 28-Oct-11 9:52am    
Just wondering why you unaccepted the answer?
Tynycae 29-Oct-11 6:02am    
Sorry Collin, I hit the Accept Solution button to Accept the solution, but then it came up Unaccepted. I thought is was an 'accept' process and not a flag! Your solution was very helpful. Apologies and thanks
You could provide a setup for your application that installs the files required. Or, if not too large, include them as resources within the application assembly.
 
Share this answer
 
Comments
Tynycae 27-Oct-11 14:00pm    
There are too many files to add as Resources. I am using Vis Studio and have been looking at Project/Properties. Is there some way to add them using the Reference Paths?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900