7

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

MarkJ
  • 30,070
  • 5
  • 68
  • 111
Furqan Sehgal
  • 4,917
  • 33
  • 108
  • 167
  • possible duplicate of [How to create a simple install system for VB6 on XP/Vista?](http://stackoverflow.com/questions/23836/how-to-create-a-simple-install-system-for-vb6-on-xp-vista) – Deanna Mar 04 '13 at 12:03
  • Possible duplicate of [How to create a simple install system for VB6 on XP/Vista and newer?](https://stackoverflow.com/questions/23836/how-to-create-a-simple-install-system-for-vb6-on-xp-vista-and-newer) – StayOnTarget Nov 12 '18 at 12:47

3 Answers3

7

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.

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
  • 5
    The VB6 runtimes have been a protected part of the OS for some time now, since perhaps Win2K SP3. Unless you have to support Win9x there is little to be gained by packaging them with your VB6 programs. The protection is more aggressive in Vista and later because faulty installers can often overlay good versions with bad. – Bob77 Dec 30 '11 at 17:59
2

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.

Jon Egerton
  • 40,401
  • 11
  • 97
  • 129
1

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

Motomotes
  • 4,111
  • 1
  • 25
  • 24