Javascript required
Skip to content Skip to sidebar Skip to footer

How to Install Visual Studio 6 on Windows 10

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 and grant full access to the Admin user

  1. Turn off UAC.
  2. How to install Visual Basic 6.0 on Windows 10 To avoid the install freezing in the "Setup is updating your system" step, you must also grant full access to the Admin user (used to install the VB6) on the registry key: HKCR\RDSServer.DataFactory\Clsid

Donovan Brown reckons you should also 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.

  • MSJAVA.ZIP

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 in "Setup is updating your system".   UPDATE: there is a fix for this here.

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

  • If you do not have the MSDN CD, clear the checkbox on the next dialog, and click next. You'll be warned of the lack of MSDN, but just click Yes to accept.
  • Click Next to skip the installation of Installshield. This is a really old version you don't want anyway.
  • Click Next again to skip the installation of BackOffice, VSS, and SNA Server. Not needed!
  • On the next dialog, clear the checkbox for "Register Now", and click Finish.
  • The wizard will exit, and you're done. You can find VB6 under Start, All Programs, Microsoft Visual Studio 6. Enjoy!

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!

  • Using Windows Explorer, browse the location where you installed VB6. By default, the path is C:\Program Files\Microsoft Visual Studio\VB98\
  • Right click the VB6.exe program file, and select properties from the context menu.
  • Click on the Compatibility tab.
  • Place a check in each of these checkboxes:
  • Run this program in compatibility mode for Windows XP (Service Pack 3)
    • Disable Visual Themes
    • Disable Desktop Composition
    • Disable display scaling on high DPI settings
    • If you have UAC turned on, it is probably advisable to check the 'Run this program as an Administrator' box

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

11. Links

  • Donovan Brown | Build Visual Basic 6.0 Applications with Visual Studio Team Services. - This includes the key step, that you need to run in the installer in XP SP3 Compatibility mode!  Interesting to know that you can do continuous integration with a VB6 application, tho.
  • Dan Brust | Installing Visual Basic/Studio 6 on Windows 10 - using a custom tool, rather than running the installer.  Very painful indeed.
  • Installation of VB6 on Windows 7 / 8 / 10 - Stack Overflow - This does work on Win7.  But it doesn't include the XP compatibility step which Win10 needs.
  • Raymond.CC | How To Install Visual Basic 6 (VB6) in Windows 10 - Great on the MSJAVA.DLL stuff.
  • Luis Henrique Demetrio, How to Install Visual Basic 6.0 on Windows 10 - Fixing the freeze in "Setup is updating your system"

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

This page has been online since 22nd February 2019.

Return to Roger Pearse's Pages

How to Install Visual Studio 6 on Windows 10

Source: https://www.tertullian.org/rpearse/installing_vb6_on_win10.htm