How to Install Visual Basic 6 on Windows 11
In this article
You can install Visual Basic 6 on Windows 11, but it will not run correctly out of the box. The installer is from the Windows 98 era and fails on modern 64-bit Windows because it tries to replace system files that are now protected. The reliable method is to run the setup in compatibility mode for Windows 98 or Windows XP, skip the parts that break, and then apply a small compatibility patch so the IDE launches without crashing. This guide walks through the safe, reversible steps to get VB6 installed and running on a current Windows 11 PC.
What You'll Need
- A licensed Visual Basic 6.0 installation disc or ISO image. The software is discontinued; do not download it from unofficial sources.
- Windows 11 with administrator rights.
- The VB6 service pack (Service Pack 6) if your disc is an early release. It is available from Microsoft's archived download pages.
- About 1 GB of free disk space.
- Optional but recommended: a virtual machine (Hyper-V, VirtualBox, or VMware) if you want to keep VB6 isolated from your main system.
Step-by-Step
- Back up your system. Create a restore point before making any changes. Open Start, type Create a restore point, and follow the wizard. This lets you undo the installation if something goes wrong.
- Disable User Account Control temporarily (optional but helpful). Some users find the installer fails when UAC prompts appear mid-setup. You can lower UAC to the lowest setting in Control Panel > User Accounts > Change User Account Control settings, then reboot. Remember to restore it after installation.
- Mount or insert the VB6 media. If you have an ISO, right-click it and choose Mount. Open the mounted drive and locate
setup.exe. - Run setup in compatibility mode. Right-click
setup.exe, choose Properties, go to the Compatibility tab, tick Run this program in compatibility mode for, and select Windows 98 / Windows Me (or Windows XP (Service Pack 3) if Windows 98 is not listed). Also tick Run this program as an administrator. Click OK. - Start the installer. Double-click
setup.exe. If a warning about compatibility appears, click Run or Yes. The Visual Basic 6.0 Setup wizard should open. - Choose the Custom installation. On the first screen, select Custom rather than Typical. This lets you skip components that cause failures.
- Uncheck the following components: Data Access (MDAC), ADO, RDS, and OLE DB, and Visual Studio Analyzer. These install old system files that conflict with Windows 11. Leave the core Visual Basic 6.0 and ActiveX controls checked.
- Choose a short installation path. Use a path like
C:\VB6instead of the defaultC:\Program Files\Microsoft Visual Studio\VB98. Long paths with spaces can cause issues later. - Proceed with installation. When prompted about replacing newer system files, click No or Keep for each prompt. Do not let the installer overwrite Windows 11 system DLLs.
- Skip the reboot if offered. The installer may ask to restart. You can choose No and restart manually after applying the service pack.
- Install Service Pack 6. If your disc is an early release, run the SP6 installer (also in compatibility mode for Windows 98/XP) before launching VB6. This updates core files and fixes known crashes.
- Apply the VB6 runtime compatibility patch. Windows 11 lacks some legacy components. Download the official VB6 runtime extended files from Microsoft's archived pages, or use the VB6 IDE Fix tool from a trusted source. This typically involves replacing
msvbvm60.dlland related files with versions that work on modern Windows. Follow the patch's instructions carefully. - Launch VB6. Open
C:\VB6\VB6.exe. If it starts, create a new Standard EXE project to confirm the IDE works. If it crashes, proceed to troubleshooting. - Restore UAC settings if you changed them, and reboot your PC.
Common Mistakes
- Running setup without compatibility mode. The installer will likely fail with a "file in use" or "access denied" error.
- Installing all components. Data Access and Visual Studio Analyzer are known to break on Windows 11. Always choose Custom and uncheck them.
- Letting the installer replace system files. Clicking Yes to overwrite newer DLLs can destabilize Windows. Always choose No.
- Using the default installation path. Paths with spaces or long names cause issues with some VB6 add-ins and project files.
- Forgetting the service pack. Without SP6, the IDE may crash on startup or when opening certain projects.
Tips
- Consider using a virtual machine for VB6 development. It keeps legacy software isolated and lets you snapshot a working setup.
- Run VB6 as administrator if you encounter permission errors when saving projects.
- Keep a copy of the installation media and service pack in a safe folder; Microsoft no longer hosts them prominently.
- If you need to use ActiveX controls, register them manually with
regsvr32after installation. - Disable Windows Defender's real-time scanning temporarily during installation if it blocks setup files (remember to re-enable it).
Troubleshooting
If VB6 does not launch or crashes immediately, try these steps in order:
- Run as administrator. Right-click
VB6.exeand choose Run as administrator. - Set compatibility mode for VB6.exe itself. Right-click
VB6.exe, Properties > Compatibility, and set it to Windows XP (Service Pack 3). - Re-register core DLLs. Open Command Prompt as administrator and run
regsvr32 "C:\VB6\msvbvm60.dll"(adjust path if needed). - Check for missing dependencies. Use a tool like Dependency Walker on
VB6.exeto see which DLL is missing, then install the corresponding runtime. - Reinstall with a different path. Sometimes a fresh install to a short path like
C:\VB6resolves issues. - Use a virtual machine. If nothing works, install Windows XP or Windows 7 in a VM and run VB6 there. This is the most reliable long-term solution.
Frequently Asked Questions
Is Visual Basic 6 still supported on Windows 11?
No. Microsoft ended support for VB6 long ago, and it is not officially supported on Windows 11. It can be made to work with compatibility tweaks, but there is no official support.
Can I install VB6 on 64-bit Windows 11?
Yes, but the 16-bit installer requires compatibility mode. The IDE itself is 32-bit and runs on 64-bit Windows with the right patches.
Do I need a license to install VB6?
Yes. You must own a valid license for Visual Basic 6.0. The software is discontinued, so you need original media or a licensed ISO.
Why does the installer ask to replace system files?
The VB6 installer includes older versions of system DLLs. On modern Windows, these are protected, and replacing them can cause instability. Always decline.
Can I use VB6 in a virtual machine?
Yes, and it is often the safest approach. Install Windows XP or Windows 7 in a VM, then install VB6 there. This avoids conflicts with your main Windows 11 system.
What if VB6 crashes when I open a project?
Ensure you have Service Pack 6 installed and have applied the runtime compatibility patch. Also try running VB6 as administrator and in Windows XP compatibility mode.