Install VB6 on Windows 7

By | 2009-06-23

After surfing around the net, I’ve found very little information regarding installation of VB6 on Windows 7. Most of the information out there is for Vista, and most of it is queries for assistance.

You may be wondering why someone would want to utilize VB6 on a shiny new operating system like Windows 7. Or even Vista for that matter.

There are about a bazillion legacy applications out there that have to be supported, and people like me who speak VB6 need to have the tools installed on our workstations in order to implement and test updates and such for these legacy applications. It also helps out when I need to squirt out a quick tool for use in my daily work. 

This process has been tested on Windows 7, both 32 bit and 64 bit, with no problems.

Note: I’ve updated this process with information from the comments (below the post). If I’ve left something out, don’t hesitate to point it out. Also – Thanks to all of you! Your comments and suggestions are much appreciated.

  1. Prerequisites:
    You need to do this stuff first:
    • Turn off UAC.
    • Create a zero-byte file in C:\Windows called MSJAVA.DLL. The setup process will look for this file, and if it doesn’t find it, will force an installation of old, old Java, and require a reboot. By creating the zero-byte file, the installation of moldy Java is bypassed, and no reboot will be required.
    • Install DirectX 7. The process and files are available here.
    • Install VB6 Common Controls, available here.
  2. Main Installation:
    1. Insert Visual Studio 6 CD.
    2. Exit from the Autorun setup.
    3. Browse to the root folder of the VS6 CD.
    4. Right-click SETUP.EXE, select Run As Administrator.
    5. On this and other Program Compatibility Assistant warnings, click Run Program.
    6. Click Next.
    7. Click “I accept agreement”, then Next.
    8. Enter name and company information, click Next.
    9. Select Custom Setup, click Next.
    10. Click Continue, then Ok.
    11. 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.
    12. On the options list, select the following:
      • Microsoft Visual Basic 6.0
      • ActiveX
      • Data Access
      • Graphics
      All other options should be unchecked. Click Continue, setup will continue.
    13. Finally, a successful completion dialog will appear, at which click Ok. At this point, Visual Basic 6 is installed.
    14. 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.
    15. Click Next to skip the installation of Installshield. This is a really old version you don’t want anyway.
    16. Click Next again to skip the installation of BackOffice, VSS, and SNA Server. Not needed!
    17. On the next dialog, clear the checkbox for “Register Now”, and click Finish.
  3. IDE Compatibility Setup
    In order to prevent weird behavior of the IDE, such as sluggishness and/or lack of control placement/resizing outlines, you’ll want to change these items.
    1. Using Windows Explorer, browse the location where you installed VB6. By default, the path isC:\Program Files\Microsoft Visual Studio\VB98\
    2. Right click the VB6.exe program file, and select properties from the context menu.
    3. Click on the Compatibility tab.
    4. 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
  4. Service Pack 6 Installation:
Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.