Link to home
Start Free TrialLog in
Avatar of nilehawk
nilehawkFlag for Egypt

asked on

how can i make stand alone exe using VB6

how can i make stand alone exe using VB6
how can i make setup for my project
i did not find setup wizard
what is the diferent between Ncode and pcode combilation (making exe files)
ASKER CERTIFIED SOLUTION
Avatar of bonggoy
bonggoy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bonggoy
bonggoy

Native Code is compiled in binary format which the computer can understand while Pseudo Code is compiled in a way where it needs a interpreter to actual translate the instructions to a format the computer can understand.
to make an exe file, after you have written your program, goto to the "file" menu and there's an entry there that reads "Make" your-program-name.exe ....

this will complile your code to an executable.

once that is complete, get out of the vb ide and then goto to your start menu on the desktop. select program files->Microsoft Visual Basic x.o-> Microsoft Visual Basic Tools->Package & Deployment Wizard.  

this will bring up the wizard to package your program into a setup script. simply enter the visual basic project name and then work thru the wizard. at the end, you'll have a setup program that will enable you to install the program.

hope this helps you.
ed.
Avatar of nilehawk

ASKER

i meed with stand alone exe file thatit runs without need to VBruns link in VB4
can i do it with VB6
Again, you cannot create a standalone EXEcutable ala DOS exe.  A VB created executable needs a whole bunch of support files to be able to run the program.  You might be able to do it in VC++ though (not really sure as I have very little experience in C++).
Native code is much more like a complete .exe, however it still has to be partially "interpreted" before it is run, that is why you have to send along dozens of extra files with your package.

If you want a true .exe that does not need to be "interpreted", switch to VC++.  It creates very portable machine code that does not need all of the "support" files that VB needs.  However, it is a little harder to develope in.
Interesting fact:

A program was once in development for VB that made it run without any dependencies.

http://maquisistem.tripod.com/maqvbdis.htm

Unfortunately, it was discontinued.

VBAccelerator.com planned to release a project which did the same thing. However, bugs could not be worked around and the project was also discontinued.
i mean by indepentant that it does not need Vb run file to work i do not mean
that it does need ocx nor dll
you know there is default dll and ocx in windows so i use them to make ademo for a cd auto play i did do it using VB4 and i added vbrun400 to my cd
If the intended demo machine has a VB6 installed in there, and assuming it contains all the third party tools that you reference in your program, you can just go ahead and "make" and EXEcutable.  Follow eab's instruction and if your program does not have any error, you'll have an "standalone-exe" generated for you.

Does that answer your question?
Not really, chances are that the user's machine will not have vb installed.