run vb exe file without any installation need to be done

Actually my vb program is very simple. only one form which will display welcome messages and ok button to call the url in default browser. My problems is this vb program will be distribute to the clients they don't want to do any installation. Is it possible to just call the exe file and how to do it. Another question is how to call the url eg.www.abc.com in default browser.
Any help would be appreciated and please provide sample code. Thanks.

klyoAsked:
Who is Participating?
 
mcriderConnect With a Mentor Commented:
To start a URL in the default browser, do this:

   shell "start.exe www.abc.com",vbHide

If that's all you're doing, and the VB runtime dll has already been installed on the system, then you should be able to just distribute your exe.  If the vb runtime dll is not on the system, you're going to have to install it.  There's no getting around that in VB.

Alternatively, you could drop vb all together and use C++ to do this or... even more basic... use a batch file.  For example:


   @echo off
   start www.abc.com
   exit


Hope this helps!



Cheers!
0
 
IBRownCommented:
Yep, that'd do it!.
0
 
klyoAuthor Commented:
but I can't use batch file to display very nice grpahic and welcome messages from the form.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
mcriderCommented:
That's true, you cant dispaly a nice graphic and welcom messages using a batch file... That's why I gave you the VB code:

   shell "start.exe www.abc.com",vbHide

but if you did use a batch file, the batch file could start a web page that had your cool welcome banner and start button which would launch the real web page you wanted...



Cheers!
0
 
caraf_gCommented:
"the clients they don't want to do any installation"

With VB you're not going to get out of this one... Your clients MUST run an install. If it's not for your application then it is for another VB application that is compatible (run-time wise, as mcrider said already) with yours.

So install they must. Unless you're willing to rewrite the lot in C++. A bit stupid for an application that only launches a web-page, if you don't mind me saying so.

Another option, use a tool such as Delphi, which, if I'm informed correctly, is capable of generating stand-alone exes that can be distributed without the need for an installation program.

But really, what's so bad about knocking up a small installation program with the wizard and creating a proper setup for your program. And I am *really* curious as to the motivation behind your clients' refusal to run a setup program.
0
 
Éric MoreauSenior .Net ConsultantCommented:
0
 
mcriderCommented:
emoreau,

Not exactly the same...


Cheers!
0
 
Éric MoreauSenior .Net ConsultantCommented:
Not exactly? This guy want to bring the user to web site without installing anything on the client PC.


Can this problem here can be answered simply by providing a HTML file to the client "which will display welcome messages and ok button to call the url".

By distributing the HTML, the clients will double-click on it, the default browser will open. Nothing to install.

0
 
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0
All Courses

From novice to tech pro — start learning today.