How to install visual basic 6 (vb6) in windows 10

Visual Basic 6 (VB6) was one of the easiest programming languages to lớn learn baông chồng in the day. It was released in 1998 và is now replaced by Visual Basic .NET (VB.NET). Even though it is outdated by several years, the programs created & compiled with VB6 can still work with the lathử nghiệm Windows operating systems which is why you can still find people attempting lớn install VB6 on Windows 10.

You watching: How to install visual basic 6 (vb6) in windows 10


If you’re trying khổng lồ install VB6 on newer operating systems starting from Windows 8 onward, especially with 64-bit architecture, you are sure khổng lồ encounter installation problems. These range from not being able to lớn continue the install without first installing discontinued versions of Java khổng lồ the setup process hanging & crashing.

In this article, we’ll show you how to successfully install Visual Basic 6 (VB6) in Windows 10 64-bit.

Bypass Update Microsoft Virtual Machine for Java Requirement

A computer should always maintain the latest version of Java and it’s pointless having the discontinued Microsoft Virtual Machine for Java on the computer just to lớn install Visual Basic 6. The problem is, the VB6 thiết lập 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 khổng lồ bypass the VB6 setup by either tricking it into thinking Microsoft Java is already installed or by telling it not to lớn install Java in the first place. Then you can reach the next phase of the installation.

There are two ways in which you can bởi vì this which we’ll list below, you only need lớn use one of them.

Trichồng VB6 thiết lập into lớn thinking Microsoft Virtual Machine for Java is Installed

The VB6 installer checks if the file msjava.dll exists in the SysWOW64 folder for 64-bit systems or System32 for 32-bit systems. Placing the tệp tin into lớn the right folder will let the VB6 install continue.

a) For the quickest & easiest way of doing this, you can download the msjava.dll file from the liên kết below và copy it khổng lồ the required directory.

Download MSJava.dll

If you’re unsure about the architecture of your Windows operating system, simply try lớn copy msjava.dll to lớn the C:WindowsSysWOW64 thư mục. If it doesn’t exist, you have sầu a 32-bit system and should copy the tệp tin to lớn the C:WindowsSystem32 thư mục instead.

b) Alternatively, the same DLL tệp tin is also present on the installation disc. You can extract it if you have an archiver such as 7-Zip installed on your system. Go lớn the IE4 thư mục located on the install CD, right cliông xã on MSJAVX86.exe, go lớn 7-Zip & select “Open archive“.

In 7-Zip, double cliông xã on which will open it. Look for msjava.dll in the list, drag it onto lớn the Desktop & then copy it to lớn SysWOW64 or System32. Copying to the Desktop first will avoid any access denied error when trying to copy the tệp tin directly from 7-Zip.


After copying msjava.dll to either the System32 or SysWOW64 thư mục, you can launch the Visual Basic 6 thiết đặt.exe file lớn start the installation. It now doesn’t prompt you to lớn update Microsoft Virtual Machine for Java.

Tell VB6 cài đặt Not To Install Microsoft Virtual Machine for Java

If you have sầu the VB6 thiết lập files on your hard drive, it’s possible to lớn edit the settings tệp tin for the installer & tell it not khổng lồ ask for Microsoft Virtual Machine for Java. This will ignore the requirement & continue the install process.

a) The simplest option here is to lớn tải về the SETUPWIZ.INI tệp tin from the link below. As the name implies, this is the cài đặt wizard configuration tệp tin. Make sure to lớn download the correct INI for your version of Visual Studio.

Download SETUPWIZ.INI (For Visual Studio 6 Enterprise)Download SETUPWIZ.INI (For Visual Studio 6 Professional)

Place the INI tệp tin in the main installation files thư mục overwriting the current file. Then start the installation và it won’t ask to lớn install Java.

b) If you want khổng lồ edit the file manually, go lớn the main folder & open the SETUPWIZ.INI file with Notepad. Look for the line “VmPath=ie4msjavx86.exe”.


Simply delete the whole line or everything after the “=” sign và save sầu the tệp tin. The install can be continued but you must also follow the next steps as well or the installation will not complete successfully.

Change VB6 Setup Options To Prevent The Install From Hanging Or Failing

While fixing the above sầu issue gets round the first hurdle of installing Visual Basic 6 on Windows 10, there are some other things that will cause the install to fail.

First of all, you will likely experience the “Setup is updating your system…” progress getting stuông xã and doing nothing else. After a few seconds, the installer becomes unresponsive sầu & then hangs. Looking in Task Manager will show high CPU usage for ACMSETUPhường.EXE và the thiết đặt window has lớn be closed manually.


If you fix that, another error that appears will be a “Setup was unable khổng lồ create a DCOM user account in order lớn register…valec.exe” message box.


With the default install options, the VB6 installer will likely produce another error message which is “javasign.dll was unable lớn register itself in the system registry”.

See more: Download Tongbu Assistant Download (2021 Latest) For Windows 10, 8, 7, 8/8


These last two error messages will cause the install to halternative text with a message saying the thiết đặt could not be completed. Since the Visual Basic 6 installer is over trăng tròn years old, there are unsurprisingly some components that will not install properly in Windows 10 which causes the failures. Excluding those components from the install process will allow VB6 to lớn install without errors.

You can use either method below to turn off the options during thiết lập that cause the install khổng lồ fail.

Disable the Setup Components Automatically

This method is the easiest và requires no manual changes khổng lồ the thiết đặt options during install. We found that the install process is handled by an STF file in the Setup thư mục on the disc. The optional components are pre-enabled in this file so we found the offenders & disabled them by default.

1. Download the correct tệp tin according khổng lồ the version of Visual Studio you are using. Cliông chồng on the liên kết below then right cliông xã on the grey Download button và select “Save links as” in your browser. This stops the file opening in a browser tab as a text tệp tin.

Download VS98ENT.STF (For Visual Studio 6 Enterprise)Download VS98PRO.STF (For Visual Studio 6 Professional)

2. Make sure that the VB6 install files are on your hard drive as you need to replace the original STF tệp tin. You can do that by simply copying all the files from the CD to lớn a folder on your drive. This won’t work if you are trying khổng lồ install from CD.

3. Go lớn the SETUP.. thư mục và copy the VS98***.STF you downloaded above replacing the file already there.


4. Run the installer & go through the setup steps as usual. When you reach the component selection window, nothing has to be changed because the edited STF already did it.

Any other options that you want to lớn enable or disable can be changed although you must make sure “Microsoft Visual InterDev 6.0”, “ADO và RDS”, & “Visual Studio Analyzer” remain disabled.

Disable the VB6 Setup Components Manually

This method is useful if you are installing from CD or the automatic option above sầu doesn’t work.

1. During the thiết đặt, make sure the Custom install option is selected.

2. Continue the install until you’re asked to choose the components from the list. Highlight Data Access & cliông xã the “Change Option…” button khổng lồ the right, then clichồng “Change Option..” for a second time.


3. Now you’ll get another các mục of components that belong to the ADO, RDS, and OLE DB Providers. Simply unkiểm tra the first ADO and RDS option.


A warning will popup that this component is an essential part of the application và it will not run properly if not installed. Clichồng OK khổng lồ acknowledge the warning và then click OK two more times to get bachồng lớn the main install options window.

This will stop the installer hanging và crashing at the updating your system window.

3. Highlight Enterprise Tools và cliông xã the “Change Option…” button. At the bottom, uncheck Visual Studio Analyzer và cliông xã OK. This option is not in Visual Studio Professional so those users can ignore it.


Disabling the Visual Studio Analyzer will stop the DCOM user account error.

4. Unkiểm tra Microsoft Visual InterDev 6.0 box in the main install options window. This will stop the javasign.dll error from appearing during install.

You can, of course, enable or disable other options in this window depending on personal preference. But make sure the components mentioned here are not enabled or the install won’t finish properly. Continue with the install & you should be able khổng lồ reach the kết thúc with no major errors after a reboot.

Run Visual Basic In Compatibility Mode

After the install is complete, Visual Basic 6 should start. If you get an error on the New Project screen, an optional step to lớn help is running VB6 in compatibility mode. In Explorer, navigate lớn C:Program Files (x86)Microsoft Visual StudioVB98, right cliông xã on VB6.exe và select Properties.

See more: How To Download Older Version Of Matlab? Matlab R2014A Download


In the Compatibility tab, check the “Run this program in compatibility mode for:” box and clichồng OK. The default option of Windows XPhường (Service Pack 2) should be fine but you can experiment with Windows Vista or 98/Me if you wish.