How to install Visual Basic 6 on Windows 10

There are quite a lot of pages out there which gives parts of the story.  None of them has the lot.  I link to the important ones at the bottom.

1.  Turn off UAC

  1. Turn off UAC.

Donovan Brown reckons you should also:

  1. Disable IE Enhanced Security Configuration.  I didn't do this; but then my install didn't complete either.

2.  Copy MSJAVA.DLL to Windows

A computer should always maintain the latest version of Java and is pointless to have the discontinued Microsoft Virtual Machine for Java on the computer just to install Visual Basic 6. The problem is, the VB6 setup does not allow you to continue with the installation if you untick the “Update Microsoft Virtual Machine for Java” checkbox as it grays out the Next button.

The solution is to trick the VB6 setup into thinking that the Microsoft Virtual Machine for Java already exists on the system so the installer automatically skips this step. Basically the VB6 setup checks if the file MSJAVA.DLL exists in the System32 folder for 32-bit operating systems or in SysWOW64 for 64-bit operating systems. It is possible to create a zero byte MSJAVA.DLL fake file and place it in either System32 or SysWOW64 depending on the Windows architecture but this doesn’t work in Windows 10.

Win10 only:

(Screen grabs here)

Assuming you have the 7-Zip archiver tool:

Go to the IE4 folder located in the VB6 installation files, right click at MSJAVX86.exe, go to 7-Zip and select “Open archive“.

In 7-Zip, double click on javabase.cab which will open another list of files. Look for msjava.dll in the list, extract and copy it to C:\Windows\System32\ if you’re on a 32-bit of Windows or C:\Windows\SysWOW64\ if you’re on a 64-bit Windows. If you are unable to follow the steps above, or don’t want to install additional programs such as 7-Zip, you can download the MSJAVA.DLL file from the link below and copy it to the directory mentioned above.

Here's my copy of the file.

3.  Get the software

Download Visual Basic Service Pack 6 from here.  This is actually the patches for VS 6 Enterprise Edition.  Run the downloaded EXE to create a temporary directory with the installer in it.

Then get your copy of Visual Studio 6.0 Enterprise edition.  Choices:

I have Visual Studio 6.0 Enterprise edition, which came from my MSDN subscription a very long time ago.  So I used that. 

  1. Copy the VS CDs to your hard disk, if you want this to install quickly.  You want to end up with this:

Or you might have an MSDN subscription, in which case you can do this.

  1. Download Visual Basic 6.0 Enterprise ISO from your MSDN subscription
  2. Right-click the ISO
  3. Select Mount

4.  Change the SETUP.EXE properties so it runs in XP SP3 compatibility mode

  1. Right-click setup.exe from the mounted drive
  2. Select Properties
  3. Click the Compatibility tab
  4. Check the Run this program in compatibility mode for: checkbox
  5. Select Windows XP (Service Pack 3)
  6. Click Apply
  7. Click OK

5.  Run SETUP.EXE - but as administrator

  1. Right-click on setup.exe
  2. Select Run as administrator (you may have to confirm this a number of times).
  3. Click Next
  4. Click "I accept agreement", then Next.
  5. Enter name and company information, click Next.
  6. Select Custom Setup, click Next. 
  7. Click Continue, then Ok.
  8. Setup will "think to itself" for about 2 minutes. Processing can be verified by starting Task Manager, and checking the CPU usage of ACMSETUP.EXE.
  9. On the options list, select the following:
    1. Microsoft Visual Basic 6.0
    2. ActiveX
    3. Data Access  (DUBIOUS)
    4. Graphics (if you want it)
    5. All other options should be unchecked.
  10. Click Continue, setup will continue.

This is where things get interesting.  This installation will eventually hang while "updating the system".

Once you reach this point, kill the installation and restart your machine.   (Donovan Brown suggests trying to install it again; but this did not work on Win10).

Visual Basic is now, basically, installed.  You should be able to find it and run it from the Windows Start menu.

7.  Now you could try to install Service Pack 6

BUT ... I got "Was not completed successfully" when I tried this.  Instructions are at Donovan Brown.

8.  A few other points

9.  Turn UAC on again!

Yes do.

10.  Change the compatibility on VB6 executable

After installing VB6, you'll want to change the compatibility settings for the IDE executable.  Otherwise it can run very slowly!

After changing these settings, fire up the IDE, and things should be back to normal, and the IDE is no longer sluggish.

11. Links

Constructive feedback is welcomed to Roger Pearse. Written 22nd February 2019.

This page has been accessed by  ****** people since 22nd February 2019.

Return to Roger Pearse's Pages