Click here to Skip to main content
12,699,123 members (24,972 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB
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 27-Jan-13 9:39am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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"

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 27 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100