Solved

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

Posted on 2001-06-18
11
181 Views
Last Modified: 2013-11-14
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
Comment
Question by:Spikeman
  • 3
  • 2
  • 2
  • +2
11 Comments
 

Expert Comment

by:msdnman
ID: 6204158
I beleive that you can include them in a resource file and they'll be compiled into the exe.
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 6204176
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
 
LVL 4

Accepted Solution

by:
vindevogel earned 50 total points
ID: 6204283
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 22

Expert Comment

by:rspahitz
ID: 6204333
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
 

Expert Comment

by:msdnman
ID: 6204339
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
 
LVL 5

Expert Comment

by:gbaren
ID: 6204631
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
 
LVL 4

Expert Comment

by:vindevogel
ID: 6205174
gbaren : he'll keep facing the dependencies problem (mainly on run times, but I guess on ADO too)
0
 
LVL 5

Expert Comment

by:gbaren
ID: 6206156
He asked a question, which I answered. My assumption is that Spikeman knows why he needs the information.
0
 

Author Comment

by:Spikeman
ID: 6206229
Thanks for your response! Darn about the dependencies!
0
 

Author Comment

by:Spikeman
ID: 6206234
Thanks for your response! Darn about the dependencies!
0
 

Author Comment

by:Spikeman
ID: 6206256
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question