Click here to Skip to main content
Rate this: bad
good
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 8:39am

1 solution

Rate this: bad
good
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"
  Permalink  
v3

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

  Print Answers RSS
0 OriginalGriff 406
1 Sergey Alexandrovich Kryukov 309
2 CB Sharma 79
3 RyanDev 75
4 PhilLenoir 70
0 Sergey Alexandrovich Kryukov 6,676
1 OriginalGriff 6,056
2 CPallini 2,473
3 Richard MacCutchan 1,697
4 Abhinav S 1,560


Advertise | Privacy | Mobile
Web01 | 2.8.140821.2 | Last Updated 27 Jan 2013
Copyright © CodeProject, 1999-2014
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