Installing Visual Basic 6.0 on Windows 7

Even though I'm running Windows 7, I still need to fire up Visual Basic 6 every once in a while to maintain my employer's ancient apps. The steps below were put together from a few posts on different sites; mostly for Vista, but so far everything has been running smoothly on 7 for me.

  1. Create a 0-byte file in the C:\Windows directory called msjava.dll.
  2. Don't just install via the Autorun executable; instead browse the Visual Studio 6 CD (or folder), right-click Setup.exe and select Run As Administrator.
  3. On any Program Compatibility Assistant warnings, click Run Program.
  4. Step through the setup screens until you're able to choose Custom Setup, then click next.
  5. On the setup options, install the following items and nothing else:
    1. Microsoft Visual Basic 6.0
    2. ActiveX
    3. Data Access
    4. Graphics
  6. Click continue and the process will start, and (hopefully) eventually complete.
  7. Skip the installations of the MSDN CD, BackOffice, VSS and SNA Server, and clear the checkbox for "Register Now". Setup should be complete.
  8. Download the VB6 Service Pack 6 from http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=A8494EDB-2E89-4676-A16A-5C5477CB9713&displaylang=en and install.
  9. Change the compatibility settings for Visual Basic (to get it to run a little more smoothly under Windows 7) by browsing to C:\Program Files\Microsoft Visual Studio\VB98, right-clicking the VB6.exe file, and selecting properties.
  10. On the Compatibility tab, check the following:
    1. Run this program in compatibility mode for Windows XP (Service Pack 3)
    2. Disable Visual Themes
    3. Disable Desktop Composition
    4. Disable display scaling on high DPI settings
  11. When you start up the IDE, you may get a notification saying that the color scheme has been changed to Windows 7 Basic, but it will be changed back to Aero once you exit. Everything should be working fine at this point!

Print | posted @ Tuesday, November 16, 2010 9:55 AM

Comments on this entry:

Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Mark Pearl at 11/16/2010 10:36 AM

I feel your pain, I had to go through the process as well...

some other blog posts I found useful regarding vb6 on Windows 7 can be found here...

http://blog.markpearl.co.za/archive/2010/10/21/getting-vb6-to-work-in-windows-7.aspx
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by david at 2/10/2011 8:27 AM

nice post .. visual basic is one of my favorite programming application.. thanks
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Abzal Shaikh at 5/9/2011 12:19 AM

Gr8.... thanks a lot
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Xavier Baquero at 6/12/2011 8:12 PM

Hello,
I carefully followed your recommendations. However, when I run vb6.0, I get a Windows Inateller window, saying "Preparing to install" and thats it. This window never goes out.
Appreciate your comments
Thanks a lot
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Alka at 6/28/2011 12:12 PM

to insstall vb softwhere
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Zaki at 7/14/2011 10:07 PM

works 4 me! thanx!
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Imran at 10/1/2011 10:07 AM

Its nice
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Alex at 10/2/2011 10:20 AM

WebClass projects do not work .... you have a solution?

tks
Alex
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by andhonkzz at 10/8/2011 5:31 PM

Nice info...
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by suhas at 10/19/2011 9:24 AM

wow , it works thank u so much for this post , it helps a lot
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Francisco Cotrim Miranda at 10/30/2011 8:56 AM

It´s hard to search Internet and find good solutions. Thanks God I found you. Guide is perfect and solved all my problems. Thanks a lot!
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Somtirth Chaudhuri at 11/14/2011 1:59 AM

I cannot explain how grateful I am to this post..great work..
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by DCB at 11/17/2011 1:23 PM

Just run it in an XP VHD using XP Mode. It is clean easy and if you create a few VHD images even allows you to test the app on XP using the undo disks; there is just no point is going to all the work just to run it natively on WIN 7
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by vishwesh at 11/24/2011 8:16 AM

give me vb 6.0
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Balram at 11/27/2011 2:51 AM

Hello sir,
Plz give me vb6.0 for window 7
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by asghari at 12/4/2011 8:43 AM

Right to Left + Visual basic 6 + windows 7
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by rakesh at 12/21/2011 7:43 AM

please tell any solutin how to work on vb in windows 7
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by dani at 1/5/2012 8:41 PM

g bsa di instal bro...
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Mbou Mouadh at 1/19/2012 1:26 PM

I really found your help useful for me, and I would like to thank you from the bottom of my heart. Thank you very much sir!
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by sachin namdev kohinkar at 1/21/2012 11:23 AM

WE WANT TO USE VISUAL BASIC 6.0 FOR SELF STUDY
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by kiran verma at 2/9/2012 11:29 AM

visual basic install
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Vikram at 2/19/2012 8:04 AM

Absolutely awesome little tutorial. Very useful. Thank you so very much!!
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by rohit patel at 2/27/2012 8:10 AM

nice vb project
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by anu at 3/4/2012 12:54 AM

how to create 0-byte file in the C:\Windows directory ? pls help me
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Bill at 3/6/2012 12:59 PM

Just create an empty text file, it will be 0-bytes.
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by sachin namdev kohinkar at 3/18/2012 4:37 AM

good softwaer for use bca
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by George Dewey at 4/9/2012 9:58 PM

My MS 7 operating system will not allow me to save a file to C:\windows. How do I change the permissions to allow me to save the msjava.dll to c:\windows. I tried right clicking on c:\windows then properties, then the security tab,then the edit button. This shows me the boxes to change the permission, but the boxes appear to be greyed out. I am the only user of this computer and I am the owner. As far as I know I am the administrator.
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Navaneethakrishnan at 4/22/2012 11:41 PM

Thanks for your help.
I have tried this in the "Windows 8 Consumer preview", it is working fine. Great stuff.
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by yougbare pascal at 5/15/2012 5:53 PM

je veux le logiciel visual basic pour apprendre a programmer
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: