Geeks With Blogs
Bill Osuch - Random geek notes

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!
Posted on Tuesday, November 16, 2010 9:55 AM | Back to top


Comments on this post: Installing Visual Basic 6.0 on Windows 7

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
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
Left by Mark Pearl on Nov 16, 2010 10:36 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
nice post .. visual basic is one of my favorite programming application.. thanks
Left by david on Feb 10, 2011 8:27 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
Gr8.... thanks a lot
Left by Abzal Shaikh on May 09, 2011 12:19 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
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
Left by Xavier Baquero on Jun 12, 2011 8:12 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
to insstall vb softwhere
Left by Alka on Jun 28, 2011 12:12 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
works 4 me! thanx!
Left by Zaki on Jul 14, 2011 10:07 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
Its nice
Left by Imran on Oct 01, 2011 10:07 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
WebClass projects do not work .... you have a solution?

tks
Alex
Left by Alex on Oct 02, 2011 10:20 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
Nice info...
Left by andhonkzz on Oct 08, 2011 5:31 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
wow , it works thank u so much for this post , it helps a lot
Left by suhas on Oct 19, 2011 9:24 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
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!
Left by Francisco Cotrim Miranda on Oct 30, 2011 8:56 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
I cannot explain how grateful I am to this post..great work..
Left by Somtirth Chaudhuri on Nov 14, 2011 1:59 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
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
Left by DCB on Nov 17, 2011 1:23 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
give me vb 6.0
Left by vishwesh on Nov 24, 2011 8:16 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
Hello sir,
Plz give me vb6.0 for window 7
Left by Balram on Nov 27, 2011 2:51 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
Right to Left + Visual basic 6 + windows 7
Left by asghari on Dec 04, 2011 8:43 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
please tell any solutin how to work on vb in windows 7
Left by rakesh on Dec 21, 2011 7:43 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
g bsa di instal bro...
Left by dani on Jan 05, 2012 8:41 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
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!
Left by Mbou Mouadh on Jan 19, 2012 1:26 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
WE WANT TO USE VISUAL BASIC 6.0 FOR SELF STUDY
Left by sachin namdev kohinkar on Jan 21, 2012 11:23 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
visual basic install
Left by kiran verma on Feb 09, 2012 11:29 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
Absolutely awesome little tutorial. Very useful. Thank you so very much!!
Left by Vikram on Feb 19, 2012 8:04 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
nice vb project
Left by rohit patel on Feb 27, 2012 8:10 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
how to create 0-byte file in the C:\Windows directory ? pls help me
Left by anu on Mar 04, 2012 12:54 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
Just create an empty text file, it will be 0-bytes.
Left by Bill on Mar 06, 2012 12:59 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
good softwaer for use bca
Left by sachin namdev kohinkar on Mar 18, 2012 4:37 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
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.
Left by George Dewey on Apr 09, 2012 9:58 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
Thanks for your help.
I have tried this in the "Windows 8 Consumer preview", it is working fine. Great stuff.
Left by Navaneethakrishnan on Apr 22, 2012 11:41 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
je veux le logiciel visual basic pour apprendre a programmer
Left by yougbare pascal on May 15, 2012 5:53 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
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
Left by sarin on Jul 10, 2012 9:28 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
it is very nice and very useful for me.
Left by prince yona evans.m on Jul 28, 2012 4:27 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
THANKS A LOT OF HELP
Left by jay on Sep 10, 2012 6:53 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
install vb6.0 for windows 7
Left by deeplaxmi jawkar on Sep 14, 2012 6:31 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
Thanks, with the help of these comment I installed VB 6.0 Successfully in Windows 7 Professional.
Left by Ashish Kumar Gupta on Oct 26, 2012 1:57 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
i can't download it..what i will do?
Left by rona acuin on Jan 12, 2013 10:03 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
I can't install VB 6 for Win 7 what will i do?
Left by Caroline Bautista on Jan 16, 2013 1:47 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
Thank You Dude Great Post.
It is really helpful.
Left by Pankaj on Jan 16, 2013 3:42 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
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...
Left by Ray on Jan 29, 2013 2:28 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
hey thank u sooooo very much!!!!!!!! :)))
Left by ahmad on Mar 19, 2013 4:36 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
awesome! really helpful for me...................
Left by ad2013 on Mar 26, 2013 12:58 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
rtpo lekhrgiok kjrh
Left by semo on Apr 04, 2013 6:29 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
Very very useful information...thank you...!
:) =)
Left by Kshitij on Apr 16, 2013 6:54 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
Thanks for the help. It worked great.
Left by Alfred on May 02, 2013 11:05 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
not responded
Left by veera on Jul 03, 2013 5:22 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
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 !!!
Left by Teodor on Jul 04, 2013 4:29 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
ado connectivity steps for vb,then example used on insert modify
Left by senthamilarasi on Aug 09, 2013 2:02 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
thank you!!! you save my day, it works great!
Left by Dimitrios on Aug 31, 2013 4:03 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
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
Left by Manish on Nov 26, 2013 2:02 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
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)
Left by Ben on Feb 07, 2014 9:51 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
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??
Left by howard beck on Feb 24, 2014 8:38 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
ass window saya adalah window 7
saya berulang2 kali instal vb 6.0 ko ngg bisa
Left by juniarti senjahri on Mar 22, 2014 7:34 PM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
how to run login page using vb6 please any one tell me clear process
Left by lakshmi on Aug 06, 2014 3:15 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
Will this also work for VB6 programming on Windows 8 ?
Left by New to VB6 programming on Sep 29, 2014 9:25 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
And will this also work for VB6 programming on the new Windows 9 (or whatever it is going to be called) ?
Left by New to VB6 programming on Sep 29, 2014 9:27 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
Looks strangely familiar.
Left by FortyPoundHead on Dec 01, 2014 9:32 PM

# how can i Install Visual Basic 6.0 on Windows 7???
Requesting Gravatar...
Hi!
My name is Khushi Baloch & i ask some thing about Visual Basic 6.0. Please tell me how can i install vb6 in my pc, i do any thing but i can't install vb6 in Windows 7 please Help me! how can i install vb6 in windows 7?
Thanks :)
Left by Khushi on Jan 04, 2015 4:48 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
It is very useful
Left by Vishani Nawodya on May 09, 2015 6:19 AM

# re: Installing Visual Basic 6.0 on Windows 7
Requesting Gravatar...
I have a Windows 7 Pro 64 system. By following varying instructions, and after creating zero byte MSJAVA.DLL files in Windows, Windows/System32, and Windows/sysWOW64, I still cannot get past the forced "Update Microsoft Virtual Machine for Java".

Has anyone else seen and gotten past this issue?
Left by Jim Gillon on May 21, 2015 3:25 PM

Your comment:
 (will show your gravatar)


Copyright © Bill Osuch | Powered by: GeeksWithBlogs.net | Join free