Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Vb exe saving help!


Reply
 
Thread Tools Display Modes
  #1  
Old 08-11-2010, 12:11 PM
mrmg mrmg is offline
Newcomer
 
Join Date: Aug 2010
Posts: 2
Question Vb exe saving help!


Hi,

When you save the visual basic project as an exe file is there a way where when the exe file opened it just executes (opens) the file (software/program created) instead of installing the software/program onto the computer.

Can you let me know as soon as possible as I need to save and do it as soon as please.

Mr MG
Reply With Quote
  #2  
Old 08-11-2010, 05:29 PM
Gruff's Avatar
Gruff Gruff is offline
Bald Mountain Survivor

Super Moderator
* Expert *
 
Join Date: Aug 2003
Location: Oregon, USA
Posts: 5,882
Default

Hopefully you are talking about VB6 here, not VB.NET

Typically under Windows you have to create a setup.exe package to install a program on the target PC. This is because certain components may be needed for your program to run. The setup package copies those components as well as your compiled program to the new computer and registers them with the local windows registry. It is possible to do this manually but I would not recommend it.

If your program does not require any extra components you could just copy the compiled Executable to the new PC all by itself and it would run fine when clicked.
__________________
Burn the land and boil the sea
You can't take the sky from me


~T
Reply With Quote
  #3  
Old 08-11-2010, 09:14 PM
meggy_e meggy_e is offline
Centurion
 
Join Date: Dec 2002
Location: Indonesia
Posts: 186
Default

if you mean about package and deployment, not just the app.exe, you can copy the content of SUPPORT folder and run the compiled app from there safely. in my experience, as long as dependancy files are within the same folder as exe file, no harm will be done.
i'd also like to delete unnecessary files, such as "VB6STKIT.DLL, SETUP1.EXE, ST6UNST.EXE, SETUP.EXE, Setup.Lst, *.BAT, *.DDF" before i copy it to other computer.
Reply With Quote
  #4  
Old 08-12-2010, 01:21 AM
Hugh Lerwill Hugh Lerwill is offline
Junior Contributor
 
Join Date: Oct 2004
Posts: 292
Default

>When you save the visual basic project as an exe file

1. The exe is saved by default to the project folder, but you can specify the path. From there it should just run on the host machine by double clicking it in Explorer. You should not need to 'install' it.

2. If a previous version of an exe has been previously installed/ run sucessfully on another computer, and a new version has no new dependencies, a new version of the exe can simply be copied over a previous one without having to 'install' it.
Reply With Quote
  #5  
Old 08-14-2010, 03:54 AM
mrmg mrmg is offline
Newcomer
 
Join Date: Aug 2010
Posts: 2
Default

thanks got it sortid at the end.
Reply With Quote
Reply

Tags
exe, open, save, vbexe


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->