Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to "include" a file when packaging my app? 1

Status
Not open for further replies.

MissouriTiger

Programmer
Oct 10, 2000
185
US
My application's main form contains a browser component. When the form loads it opens a splash page which is stored in the same directory as the vb project files.

Unfortunately, when I package the program up for distribution, the html file is left out. The Package & Deploy wizard doesn't give me the opportunity to include additional files, (which I think is strange)and I can't find anything in the VB interface that will allow me to import or reference a file that isn't an ActiveX control.

How do I include the html file when packaging?



Greg Norris
Software Developer

<A href="__________________________________________________
Constructed from 100% recycled electrons.
 
You have the chance to add any additional files before you compile with the P&D Wizard. It is the second to last step, I believe. I hope you are using App.Path & "\" & filname in your code to open it.

-David
2006 Microsoft Valueable Professional (MVP)
2006 Dell Certified System Professional (CSP)
 
Yes, I am using app.path. I also finally realized that it was poossible to add files during packaging. However, it is necessary to then change the location of each file, and I have a lot of files to include.

I can't believe the packaging wizard is too stupid to take note of the file paths & recreate them, or at least offer that option. Geez, what do people do who have over a hundred different files to include in a couple dozen differrent directories and sub-directories in their directory structure?

So in frustration, I just piled them all together in the same directory and changed the paths in the code. This project has taken so long as it is, I'm not making any money.

Thanks for the help!

Greg Norris
Software Developer

<A href="__________________________________________________
Constructed from 100% recycled electrons.
 
I switched to Inno Script and Inno Setup, to solve that and a few other problems. Check out for links to both. Randem wrote Inno Script, which writes the script that Inno Setup uses. You can download a trial version, which isn't crippled. The registered version is only $15.

-David
2006 Microsoft Valueable Professional (MVP)
2006 Dell Certified System Professional (CSP)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top