Installing VB6 on Windows 7

July 10, 2013 // Posted in Computer Tips, Main  

I know this post is not about PHP but I feel it may me useful to someone.

VB6

VB6

Microsoft say that you can only install VB6 on Win7 in a virtual machine in XP Mode. That is an issue if you do not have Win 7 Ultimate or Professional as XP Mode is not available for Windows 7 Home.

So here’s how to get it running on Win 7.

I have tested this on Win7 32 Bit, and know others that have also installed successfully on 64Bit.

Please Note: It will not work on Windows 8 as VB6 support has been removed from Windows 8.

    • Start by creating a zero-byte file in C:\Windows called MSJAVA.DLL. To do this create a text file in notepad with nothing in it and save it in a folder with the name MSJAVA.DLL. Then browse to the file, copy it and paste it in c:/windows, click Yes to the prompt to use administrator privileges.
    • Next turn off User Access control. To do this go to control panel, click System Security, then Click Change User Account Control Settings, move the slider right down to the bottom and click OK.
    • Insert your VB6 CD and click the view files (do not auto-run) and browse to the setup.exe, right click it and select Run As Administrator. You will get various incompatibility messages just ignore them and continue.
    • Select Custom Setup and check the boxes against:
      • Microsoft Visual Basic 6.0
      • ActiveX
      • Data Access
      • Graphics
      Only the above.
    • Next browse to C:\Program Files\Microsoft Visual Studio\VB98\ and find the vb6.exe file. Right click it and select properties. Go to the Compatibility tab and select the following only:
      • 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
    • Install the Service Pack 6, again by right clicking the setup.exe file and selecting Run as Administrator.
    • Finally as there may be some registration issues for some ocx’s download and run the vb6 runtime for Win7  (available from Microsoft here)
    • Switch User access Control Back on.
    • You are now good to go.
    • Enjoy.

I hope that is useful to someone

Steve

Some information for this post was gleaned from http://www.fortypoundhead.com/showcontent.asp?artid=20502, thanks to fortypoundhead.

This entry was posted on July 10, 2013 at 8:33 am and is filed under Computer Tips, Main (Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , ). You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Comments (1)

Leave a Reply (name & email required)

%d bloggers like this: