fortypoundhead.com

25MAR

Visual Basic 6

Install VB6 on Windows 8

 

As most of the world knows, Microsoft has made available a consumer preview of Windows 8. While this is still considered beta software, I highly recommend you check it out.

Some of us technology minded folks are charged with supporting legacy software, developed with Visual Studio 6 (particulary Visual Basic 6), and with the iminent release of Windows 8, there is some worry about whether our support tools will work with it. This tutorial will (hopefully) help you get VB6 installed on your Windows 8 system!

First off, I highly recommend you test this on your non-production machine. As with all beta software, strange things can happen. If you fry your system, don't hold me responsible! I am just passing on what has worked for me.

This description might be a little verbose, but I would suggest that you at least read through it once before proceeding. That way you can pick out the bits that pertain to you. Also, I may have included some unecessary steps, but like I said, this is the process that worked on my test system.

Test system specifications


Dell Latitude E6410
4GB RAM
Intel Core i7 @ 2.67 gHz
Windows 8 Consumer Preview (64-bit) (fully patched)

No other software has been loaded on to the system. It's fully stock.

Your results and process may vary for 32-bit systems, or if you have installed any other software, but should work. If not, it should give you a good starting point.

Insert the disk into the drive (or mount the ISO), after which autorun should detect the disk, and ask for action, at which point you should ignore or dismiss it.

Change compatibility settings


Hold the Windows key and press the letter E to open Windows Explorer. Browse to the CD/DVD drive where you have inserted the disk, and right click the setup.exe application to run the program as Administrator.

Check the checkbox under Compatibility mode, and select Windows XP (Service Pack 3) under the Run this program in compatibility mode for: heading.
Click Apply, then Ok.

Back in Windows Explorer, open the Setup folder on the CD-ROM, and change the compatibility mode for the ACMSetup.exe using the same method.

Step through the Wizard


  1. UAC
    1. Yes
  2. Program Compatibility Assistant
    1. "Run the program without getting help"
  3. Installation Wizard
    1. Next
  4. End User License Agreement
    1. I accept the agreement
    2. Next
  5. Product Number and User ID
    1. Enter product number
    2. Enter Your name and Your company's name
    3. Next
  6. Setup Options
    1. Install Visual Basic 6.0 Enterprise Edition
    2. Next
  7. Choose Common Install Folder
    1. default location; change if needed
    2. Next
  8. Program Compatibility Assistant
    1. ACMSetup is run at this point to actually install VB6
    2. Select "Run the program without getting help"
  9. Visual Basic 6.0 Enterprise Setup
    1. Click Continue on the opening screen.
    2. Click Ok at the bottom of the Product ID screen
    3. pause while setup searches for installed components
  10. Choose the installation you want
    1. I selected custom for this installation. For the options, I chose Microsoft Visual Basic 6.0 and Active X. the Data Access option is selected, and cannot be unselected.
    2. change path if desired. I used the default path

Setup will go through a few steps, but with a surprise at the end.

setup checks for necessary disk space
...
setup begins installation process
...
setup is updating your system

At this point, setup will hang. Damn. What now?

Open up Task Manager, and kill the process marked as Not Responding. After you have killed that task (and only that task!), close the task manager; we're done with that!

The good news, the everything is installed! All we have to do is make an adjustment.

One final tweak


Back in Windows Explorer, browse to the path that you install VB6 to. If you stuck to the defaults, the path should be:
c:\Program Files (x86)\Microsoft Visual Studio\VB98
Right-click the VB6.EXE program, select properties, then go to the Compatibility tab. At the bottom of the window, click the Change settings for all users button.

Put a tick mark in the check box, and make sure the Windows XP (service pack 3) option is selected in the drop down. You'll also want to put a check mark in the Disable display scaling on high DPI settings and the Run this program as an administrator check boxes, towards the bottom of the window.

Finally click Apply, then Ok, then Ok again.

Now, you can go ahead and close you miscellaneous Explorer windows, and head back to your Start tiles. In that list, you should see a Microsoft Visual Basic 6.0 icon in the list.

Click that bad boy, and enjoy the legacy goodness!

Posted On 2012-03-25 by dwirch
Keywords: Windows 8 developer consumer preview
Tags: Visual Basic 6 Tutorial Tip  Windows 8 Windows
Views: 28147

Comments On This Post

dwirch

By: dwirch
Date: 2012-03-25

I will re-test this procedure when the RTM is released.

LoboFX

By: LoboFX
Date: 2012-06-08

Hello dwirch, thanks for the article! It worked here too.
Question: Did you succeed installing the VB6 SP6 after that?
It has failed here...

dwirch

By: dwirch
Date: 2012-06-09

Dang. forgot to install SP6. I'll have to load up the Release Preview (or Release Candidate if your prefer) and give it a shot.

blackdyke

By: blackdyke
Date: 2012-07-26

Hello dwirch,
thanks for your article. the setup did not complete, but vb is running. the problem is I cannot install sp6, because vb6-setup did not finish successfull. are there any hacks to manipulate the registry, so I can install sp6?

uffeuffe

By: uffeuffe
Date: 2012-08-17

Hey, you need to untick "Data Access" options when installing, then the installation works fine and you can install SP6 afterwards.
http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/f976e59d-07f6-4dbe-8206-7c50905ef8e0

dwirch

By: dwirch
Date: 2012-08-17

I need to re-write this article, now that RTM is out... I'll post an update soon.

sacsac

By: sacsac
Date: 2012-08-28

I got the main VB6 IDE installed, but SP6 refuses. I run it as admin, and it goes through the entire process, ending up with saying that has not installed correctly! Any ideas?

adrianhalid

By: adrianhalid
Date: 2012-10-03

It seems the components that cause an issue when installing are as follows.
I select Custom install and uncheck the following.

Tools -> OLE/Com Object Viewer
Enterprise Tools -> Visual Studio Analyzer
Data Access -> Change Options -> ADO, RDS and OLE DB Providers

I was successful with installing Visual Studio 6 IDE and SP6 with the above options unchecked.

adrianhalid

By: adrianhalid
Date: 2012-10-03

Here is my step by step guide in detail.

Visual Studio Installation
1. Ensure UAC has been turned off.
2. Ensure your user has administrative rights on the computer.
3. Run the Setup.exe file in the Visual Studio Installer.
4. “Run the program without getting help” when the error “This program has compatibility issues”.
5. Click Next, Accept the Agreement and click Next.
6. Enter your software key, name and company name. Click Next.
7. Update Microsoft Virtual Machine for Java.
8. “Run the program without getting help” when the error “This program has compatibility issues”. Note message shown twice.
9. Say “Yes” to reboot the system.
10. On start up the setup continues to run.
11. “Run the program without getting help”
12. Start Page shown. Click on Desktop.
13. “Run the program without getting help”
14. Visual Studio 6.0 Enterprise Edition shown with options “Custom, Products or Server Application”.
15. At this point click “Exit” on the installer and confirm with “Yes” otherwise an error will be shown if you continue.
16. Run the Setup.exe file in the Visual Studio Installer.
17. “Run the program without getting help”
18. Click Next and Accept the Agreement and click Next
19. Enter your software key, name and company name. Click Next.
20. Select Custom and click Next
21. Installation folder click next
22. “Run the program without getting help”
23. Click “Continue”.
24. Product ID click “Ok”
25. Tools -> Change Options -> OLE/Com Object Viewer, Uncheck and click OK.
26. Enterprise Tools -> Change Options -> Visual Studio Analyzer, Uncheck and click OK.
27. Data Access -> Change Options -> ADO, RDS and OLE DB Providers, Uncheck.
28. At this point it warns saying the component is essential. Click OK and OK again.
29. Click continue.
30. Say Yes to register environment variables.
31. Say Yes to VSS DB format.
32. Install box with “Destination File:” should appear.
33. Setup is updating your system message box should appear.
34. Click OK to Windows NT Debug Symbols.
35. Click Restart Windows.
36. On start up the setup continues to run and loads APEMREG.exe.
37. Install using compatibly settings.
38. “Run the program without getting help”
39. Untick install MSDN. Click Next and yes to confirm.
40. Select Nothing and click Next.
41. Select Nothing and click next.
42. Untick Register and click finish.
SP6 Installation
1. Run setupsp6.exe
2. Click Continue.
3. Click I Agree.
4. Setup Successful click OK.

dwirch

By: dwirch
Date: 2012-10-03

Good job - Thanks for the writeup!

adrianhalid

By: adrianhalid
Date: 2012-10-04

Just another point on this.. I think the Data access fails because RDS Remote Data Services are no longer included in Windows 8 http://msdn.microsoft.com/en-us/library/windows/desktop/jj584987(v=vs.85).aspx

adrianhalid

By: adrianhalid
Date: 2012-10-04

So the installer goes in an infinite loop looking for a registry entry for the class id of RemoteData Services.

bond

By: bond
Date: 2012-11-09

With Data Access unticked would this mean I wouldn't be able to link an Access 2003 database?
Relevant components being Microsoft Data Bound Grid Control 5.0, and the default Data control in toolbox.

dwirch

By: dwirch
Date: 2012-11-10

@Bond - I haven't run into that. When I perform the install the Data Access option is selected, and cannot be unselected. But I would assume that if you somehow get it unselected, then yes, that *might* prevent you from connecting to an Access 2003 database. However, the problem might be mitigated by installing MDAC on the system.

bond

By: bond
Date: 2012-11-10

Possibly...
Have you managed to get SP6 working? Through either your own means or adrianhalid's method.
Having looked through many threads I can't see that anyone has so I'm slightly skeptical. Do you also get the issue of windows not recognising VB6 as a program? ie. not being listed under uninstall programs, as I've seen this is common.
I may just stick with using VB6 on my laptop with Windows Vista in the end but it'd be nice to get it working on Windows 8!

dwirch

By: dwirch
Date: 2012-11-10

SP6 went on without a hitch, just by running through the setup. I've got it running on all three of my Win8 machines. Although, one of the machines has a problem with control placement on forms. Weird thing with the cursor being about an inch below where the control is, most likely a flaky video driver on that one machine. Other than that, no problems.

davidd

By: davidd
Date: 2012-11-13

SP6 needed for MSHFlexGrid I think - I followed FortyPoundHead advice for installing VB6 on Windows *7*, with with Data Access components selected as normal, which then stopped responding (as described). SP6 didn't install properly, and MSHFlexGrid/Hierarchical FlexGrid control failed to load. Then I found this thread, and re-installed, this time unchecking the Data Access checkbox for "ADO, RDS, and DB Providers" as suggested. This completed normally, SP6 then installed OK, and MSHFlexGrid and data access all worked OK. Success! Thanks for all the advice.

bond

By: bond
Date: 2012-11-15

Adrian's instructions seem to have worked for me. Throws up the occasional error but it's working fine.

rn701

By: rn701
Date: 2012-11-17

VB6 installed on Win8 as described and seems to work OK.

One interesting problem. Forms with form icons that have transparent backgrounds won't load, saying the icon is not valid. Removing the icon or replacing it and saving the form fixes it. Executables that ran fine on Win7 will not run on Win8 unless this is fixed and the app recompiled.

Wondering if it's a bug in the Windows forms engine, WOW, or something else. Unfortunately, my app has approx. 100 forms with this problem that I will have to go through and find new icons or fix the existing icon by filling the transparent parts and adding it back to the form, which seems to work.

rn701

By: rn701
Date: 2012-11-17

P.s. re. previous comment about icons, I'm just guessing that the problem is related to transparency. Could be something else Win8 doesn't like about them that was fixed by editing the icon and saving it.

Also, the runtime error for an executable with this problem is the generic 50003 error.

online98

By: online98
Date: 2012-11-22

hi , SP6 include DataAccess ??
I am not able to install Visual Basic on Windows 8 :(
compnent not registered


davidd

By: davidd
Date: 2012-12-17

@online98 - you could try like I did i.e. initially install with Data Access components all selected, watch it hang, kill the job from Task Manager, then install again, this time unchecking the Data Access checkbox for "ADO, RDS, and DB Providers" as suggested. Then install SP6, and ADO etc. should work (though in my case I was only doing a very simple ADO call in my VB6 code).

ajit

By: ajit
Date: 2012-12-18

VB Can be Installed neatly in Win 8 & win 7
And Start Development

adrianhalid

By: adrianhalid
Date: 2013-01-05

We also had the issue with form icons and replacing them worked. Not sure what the actual issue was.

We even had the application raise an error on these forms even if compiled on windows 7 and then ran the compiled exe on a windows 8.

frannkfga

By: frannkfga
Date: 2013-01-15

Tengo un problema diferente, en mi caso el Visual Basic se instalo, pero no reconoce las unidades de red, ni cuando se compila el ejecutable; que tengo hacer?

dwirch

By: dwirch
Date: 2013-01-16

For non-spanish speakers, Frannkfga posted:

I have a different problem, in my case the Visual Basic was installed, but does not recognize network drives, or when compiling the executable, that I have to do?

dwirch

By: dwirch
Date: 2013-01-16

@frannkfga: Have the network drives been mapped to drive letters? Are you using the standard drives control ?

dwirch

By: dwirch
Date: 2013-03-05

You can download VB6 Service Pack (SP6) Runtime Extended from


http://support.microsoft.com/kb/957924?wa=wsignin1.0


b.macgregor@vodamail.co.za

By: b.macgregor@vodamail.co.za
Date: 2013-03-20

Hi
I am not a technical fundi but I am having trouble installing my VB6 on my new Windows 8 machine. I tried to follow the above with no success. Can you please help?
Regards
Mac

 

You must be logged in to post a comment.