Install Visual Basic 6 (VB6) on Windows 7 / Windows 8

Visual Basic 6 Logo

You may be wondering, Why install Visual Basic 6 on the new operating systems such as windows 7 or Windows 8.

Well, VB6 is the best tool for learning GUI programming in Windows (according to my teachers in college..!!). But they never tell how to install them on newer operating operating systems. So i figured it out myself.

This has been successfully tested on my Windows 8 64-bit, so it should probably work with Windows 7 too.

So here are the steps which I followed

  1. Create a zero-byte file in C:\Windows named MSJAVA.DLL. The reason for this is that the setup will look for this file and if it doesn’t find it, it will force for installation of very old version of Java (which wont install on Windows 8) and will force reboot too. By creating a zero-byte file, the Java installation is bypassed, and no reboot is required.
    For those who are wondering how to create a zero-byte file here is a simple process.

    • Type cmd in Start Menu -> Right click on cmd.exe -> select “Run as administrator” and type in the foll command
      copy nul C:\Windows\msjava.dll
  2. Now insert your Visual Studio 6 CD (or extract the given file to a folder on Desktop)
  3. Exit from Autorun (In case of CD)
  4. Browse to the root folder of CD (or the extracted folder on Desktop)
  5. Right Click “SETUP.EXE” -> Properties -> Compatibility Tab
  6. Now Check “Run this program in compatibility mode” and Select Windows XP( Service Pack 3)
  7. Also Check “Run this program as Administrator” and Click OK
  8. Now open SETUP.EXE. UAC will prompt for confirmation. Select Yes
  9. Now some Program Compatibility Assistant warnings might appear. Select Run Program There
  10. Click Next -> Click “I accept agreement”, then Next -> Enter name and company information, click Next
  11. Now Select “Custom Setup” (IMPORTANT). Click Next
  12. Click Continue, then OK
  13. Now Setup Will Wait and process some information. It might also go to “Not responding” State and Windows might Prompt to close the Process. DO NOT close the process.(IMPORTANT)  Select “Wait for the program to respond”.
    Wait time varies, I had to wait for 30-45 mins on “Not Responding” State. You might need to wait more…or less if you are lucky
  14. Now finally the options list appears
  15. Click on “Select All”. All options should be checked. Click Continue, setup will continue.
  16. Now Setup might again Hang on “Updating System”. Wait, DO NOT close the process. Again the wait time might be from few mins to an hour..!!
  17. Finally, a successful completion dialog will appear, at which click OK. At this point, Visual Basic 6 is installed. Some people might also get some error, but Visual Basic 6 will be installed anyways.
  18. Access it from Start Menu

Update: Some of my friends mentioned about he sluggishness of VB6 on Windows 8. For example the resizing of objects. Here is a quick fix

  1. Using Windows Explorer, browse the location where you installed VB6. By default, the path is:
    C:\Program Files (x86)\Microsoft Visual Studio\VB98
  2. Right click the VB6.exe program file, and select properties from the context menu.
  3. Click on compatibility tab
  4. Check the foll checkboxes:
    For Windows 7:

    • 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

    For Windows 8

    • Run this program in compatibility mode for Windows XP (Service Pack 3)
    • Reduced Color Mode (16-Bit Color)
    • Disable display scaling on high DPI settings
  5. After saving open up VB6, It should work normally


Happy Programming..!!

  • Pingback: VB6 en Windows 7. El lastre de Microsoft, casi de por vida!()

  • Yaseen

    You solved my problem ! Thanks

    • SAHIL

      U r welcome…

      • Ansari Bismillah

        plz help me “sahil” i did all the stuff but its not working on my windows 8 os :(

      • Ansari Bismillah

        how to make a zero byte file in c ???? i already did it .. but after it .. i go to run and then cmd and past the address . but cmd says that we cannot recorginised this address … i hope u will help me

  • Ilan

    Thank you ! Great help.

  • shoukath

    where do I download the visual basic 6

    • SAHIL

      u can download it via torrent.
      Thats all I can say..

  • Ravindra Rathore

    i think i am lucky, total installation has taken 1 minutes 20 seconds if you use

    Check the foll checkboxes:

    For Windows 7:

    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

    at setup.exe

    • SAHIL

      Thanks for the info..

  • Ravindra Rathore

    ohh sorry… i forget to say “thanks ” :)

    • SAHIL

      no. problem… u r welcome..

  • DanCollins

    I have a VB6 installation I need to install on a 64 bit win7 box but am having trouble understanding the difference between Visual Studio 6.0 and VB6. They seem to be used interchangeably but I’m not sure they are the same. My VB6 installation on my XP box doesn’t say Visual Studio nor does the label on the disc? Are they the same? Do the instructions here apply to just one and not the other, or both? Thanks.

    • SAHIL

      They are the same..

  • Lester Nubla

    Hi. I have successfully installed VB6 in my Windows 7 64-bit. However, the Service Pack 6 which I really need cannot proceed in installing. Have you ever encountered this incident? Thanks.

    • SAHIL

      No,i haven’t encounter that becoz i didnt install Service Pack 6, as i needed VB only for few assignments…

  • Hih

    This is a virus!

  • Ram

    thank you for free virus

  • loa

    Vaurias! I don’t know how to spell Vaurias.
    sorry. but its a trojan

  • loa

    omg! a virus!

  • loa

    I learned how to spell virus :)

  • askme

    Fucking virus :(

  • JhayCee Mallari

    ahm.. hi.. .. THANKS i Successfully installed Visual basic.. thankyou.. but can you solve this one.. it keeps popping on my screen when i start visual basic.. i cant run the program when this one pops up “MSVBVM60.DLL could not be registered”


  • Dushmantha

    You solved my problem ! Thanks

    • SAHIL

      u r welcome…

  • VB6 Programming
  • ewarner77

    I was very happy to find this post, and I have followed it to the letter, but my machine has been sitting for over 24 hours with the VB6 install marked as (not responding)… Any thoughts??? I have a project that I wrote in VB6 many years ago that I still use a number of times a week and I would really like to make some updates to the program, but I don’t want to go through the conversion to the .net. I have tried the wizards and they leave me with a project with 53 warnings and things I need to fix… I might as well start from scratch… Again I greatly appreciate the help :)

    • SAHIL

      well try installing it again from first…
      or else u can always use Win XP directly via vmware or virtual box and install VB6 in it

  • Mukhlis

    Hi, just wanna say that this article helped me! Installed it for Windows 7 64-bit. Thanks for this! :)

    • SAHIL

      You are welcome mate..

  • manu

    finally installed vb6!! thankyou so much! :)

    • SAHIL

      U r welcome.
      Glad I could help..!

  • su

    Hello. i can’t intall vb6 since there is no compatibility tab. where can i click the compatibility tab?