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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mcriderCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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 Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.