Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running VB6 applications without having installed VB6

My problem is I have to install VB6 on client's computers if I want to run my VB6 applications. Actually the version of VB6 I have, can not make setup file. So I just make a link to the exe file manually.
Is there any way that I donot have to install VB6, could just copy a few files and the application could run?

Thanks

like image 300
Furqan Sehgal Avatar asked Dec 30 '11 10:12

Furqan Sehgal


3 Answers

In order to run VB 6 applications (even when compiled to an EXE), your clients will have to have the VB 6 runtime installed on their machines. You can download the latest version here and install it manually for testing purposes, but don't try and roll out an application like that.

If your version of VB 6 didn't come with the Setup and Deployment Wizard (I thought they all did?), then you should look into creating your own installer package using third-party tools.

I highly recommend Inno Setup, which is completely free and works great for VB 6 applications. I've used it many times myself. The website even provides specific instructions for creating an installer for a VB 6 application. It creates a single EXE that contains your installer--just double-click it and go!

But there are many other options to create your own installer. The important thing is that you definitely want to create an installer to automate the process of installing the support files. Trying to toss a few files into the system folders here and there yourself is a terrible idea, very prone to error and resulting in a lot of support calls from your customers.

like image 126
Cody Gray Avatar answered Oct 04 '22 21:10

Cody Gray


If your app only has an Exe (and not any class libraries (ie activex dlls etc)) then you just need the VB6 runtime (rather than the VB6 studio) rolled out to the client machines.

If you have DLLs in the app they need to be registered, so you're probably looking at least at doing a simple MSI installer.

The VB6 runtime is available here: http://www.microsoft.com/download/en/details.aspx?id=24417

Its very difficult to get away with less than this - essentially your exe would have to self install - set the runtime up and do any registrations that are required.

like image 38
Jon Egerton Avatar answered Oct 04 '22 21:10

Jon Egerton


You can run a vb6 app without installing the runtime usually by just including msvbvm60.dll

like image 28
Motes Avatar answered Oct 04 '22 22:10

Motes