Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

Create .exe with all included, rather than an installation package?

How may I create an .exe that contains bitmaps, etc. for my application so I may transfer it to another computer without creating an installation package??

Thanks.
0
Spikeman
Asked:
Spikeman
  • 3
  • 2
  • 2
  • +2
1 Solution
 
msdnmanCommented:
I beleive that you can include them in a resource file and they'll be compiled into the exe.
0
 
rspahitzCommented:
Yup, that'll work for most things, but unless your app is small, I'd recommend building it as a set of files that can be replaced individually.  That is, make .dlls, components, etc. and build them in such a way that they have their own upgrade path and can be delivered separately.

One of the big benefits of this is that you can deliver a .dll via a website and not feel that people are stealing your product--because they simply don't have the other parts they need to use it all.

Another big benefit is that, if you have to send any kind of update, the distribution file will be significantly smaller than sending the entire application each time.
0
 
vindevogelCommented:
spikeman: you'll always need the VB Run Time modules on "virgin" machines ...

You can include all your bitmaps into the exe using a resource file, as suggested, but that does not guarantee that your exe will work because of missing files.

If you're looking for something like a single install file, consider InstallShield ... one click web setup.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
rspahitzCommented:
Good point, vindevogel.

Also, a simple low-cost (shareware) install program is the Zip2Exe part of PKZip, but then the user generally has to place the pieces in the right folders or run an extra batch file to handle this.
0
 
msdnmanCommented:
Unless all the dependencies for your app are available on the other computer you're going to have to have a setup program to get them on there. Your app exe can contain all of the others though, bitmaps, etc.. Visual Studio Installer is fairly easy to use, it creates MSI files for distribution. May be a little simpler to use unless you need the customization of InstallShield.

Good luck
0
 
gbarenCommented:
Spikeman,

Put an extra form in your project.
Call it frmResource.
Put picture boxes on that form.
Load those picture boxes with bitmaps at design time.

Then, whenever you need one of those bitmaps, just do something like this:
    Form1.Picture = frmResource.Picture5.Picture

0
 
vindevogelCommented:
gbaren : he'll keep facing the dependencies problem (mainly on run times, but I guess on ADO too)
0
 
gbarenCommented:
He asked a question, which I answered. My assumption is that Spikeman knows why he needs the information.
0
 
SpikemanAuthor Commented:
Thanks for your response! Darn about the dependencies!
0
 
SpikemanAuthor Commented:
Thanks for your response! Darn about the dependencies!
0
 
SpikemanAuthor Commented:
Thank you all, for your responses. I tried to give you all the 50 points and an "A" but got errors. It allowed me to do it on the last question I asked.

Thanks again!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now