Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
After working for weeks on a project I am ready to publish the program.
I have been programming for a little over 7 months so I am fairly new
to this. I have in the past published programs that are full self contained.
That is the graphics were all inside the image lists and it contained only one
main form.

My question is, is there a place someone can point me that will explain how to
include video and sound files that are called by the program but stored in
a folder on the main drive. Something that would copy the files from the CD
to the hard drive of the person installing the program?

The program runs fine in debugging mode however when I try and publish
the program it will not include these files.

Thank You...
Posted

1 solution

Assuming you are using Click Once Publish feature of Visual Studio or InstallShield to generate a setup program.

Did you add the files to the project?

Right-Click on Project name in the Solution Explorer.
Click on Add
Click on Existing Item
In the file dialog box, change the filetype to Video Files
Find your video file and click the Add button
In the Solution Explorer, right-click on the name of the video file
Click Properties
Change "Build Action" to "Content"
Change "Copy to Output Directory" to "Copy Always"
 
Share this answer
 
v3

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