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
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by sarin at 7/10/2012 9:28 AM

Visual Basic 6.0 Gets Run in Windows 7 i am Visual Basic 6 programming is cerate new EXE on still not in work IN PROPERLY
please provide the solution
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by prince yona evans.m at 7/28/2012 4:27 AM

it is very nice and very useful for me.
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by jay at 9/10/2012 6:53 PM

THANKS A LOT OF HELP
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by deeplaxmi jawkar at 9/14/2012 6:31 AM

install vb6.0 for windows 7
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Ashish Kumar Gupta at 10/26/2012 1:57 AM

Thanks, with the help of these comment I installed VB 6.0 Successfully in Windows 7 Professional.
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by rona acuin at 1/12/2013 10:03 AM

i can't download it..what i will do?
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Caroline Bautista at 1/16/2013 1:47 AM

I can't install VB 6 for Win 7 what will i do?
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Pankaj at 1/16/2013 3:42 AM

Thank You Dude Great Post.
It is really helpful.
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Ray at 1/29/2013 2:28 AM

just installed the vb6 sp6 in my pc following the intruction. just notice that the error box when existing the program is gone. moving the controls around the form is fast not like before its crawling...


thank you so much for this solution...
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by ahmad at 3/19/2013 4:36 AM

hey thank u sooooo very much!!!!!!!! :)))
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by ad2013 at 3/26/2013 12:58 AM

awesome! really helpful for me...................
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by semo at 4/4/2013 6:29 AM

rtpo lekhrgiok kjrh
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Kshitij at 4/16/2013 6:54 AM

Very very useful information...thank you...!
:) =)
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Alfred at 5/2/2013 11:05 AM

Thanks for the help. It worked great.
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by veera at 7/3/2013 5:22 AM

not responded
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Teodor at 7/4/2013 4:29 PM

Hello, sir !
I AM REALLY THANKFUL TO YOU !!!
WHAT YOU HAVE DONE MOTIVATED ME AND MADE ME TO INSTALL VISUAL BASIC 6 !!! :)
Thank you so so much !!!
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by senthamilarasi at 8/9/2013 2:02 AM

ado connectivity steps for vb,then example used on insert modify
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Dimitrios at 8/31/2013 4:03 PM

thank you!!! you save my day, it works great!
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Manish at 11/26/2013 2:02 PM

While installing VB6 with above instruction on Win 7 64bit, I received following message "Win32 Cabinet Self-Extractor has stopped working"
Any idea

thnak you
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by Ben at 2/7/2014 9:51 AM

I got the form elements to move smoothly thanks to your post. However, when loading the studio, the forms elements stack on top of one another. Studio doesn't seem to recoginze the top, left, height and width properties.

Can you help? (windows 7, 32-bit)
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by howard beck at 2/24/2014 8:38 PM

I tried to do this. Still doesn't work. When I got the vb6 service pack it asks me where I want to install it. Where do I send it??
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by juniarti senjahri at 3/22/2014 7:34 PM

ass window saya adalah window 7
saya berulang2 kali instal vb 6.0 ko ngg bisa
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by lakshmi at 8/6/2014 3:15 AM

how to run login page using vb6 please any one tell me clear process
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by New to VB6 programming at 9/29/2014 9:25 AM

Will this also work for VB6 programming on Windows 8 ?
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by New to VB6 programming at 9/29/2014 9:27 AM

And will this also work for VB6 programming on the new Windows 9 (or whatever it is going to be called) ?
Gravatar # re: Installing Visual Basic 6.0 on Windows 7
by FortyPoundHead at 12/1/2014 9:32 PM

Looks strangely familiar.
Post A Comment
Title:
Name:
Email:
Comment:
Verification: