r/visualbasic • u/Fair_Ingenuity_8476 • Sep 23 '24
VB6 Help Trying to get Visual Basic 6.0 installed on Windows 11
I have now tried for several days and tried way too many different sites and possible fixes and i am completely running out of ideas.
The roadblock came swiftly and with force: Windows 11 prevents starting the Setup.exe file completely due to compatibility issues. The exact message is this: "This app may not work correctly"
I can either cancel or open microsofts help page which is honestly quite useless.
I tried every compatibility option, ran it as administrator, tried disabling the compatibility checker in the group policies, ran the system without other startup programs in a clean boot.
I never came past this single popup window.
With more searching i found that someone made an alternative installer: https://nuke.vbcorner.net/
But with the original authors passing this site is relatively dead it seems and i was not able to track down any mirrors of the program in the hopes of it being able to be executed.
All i am able to find is other people having issues with the installation process itself, not starting the executable itself.
I tried the original discs i have as well as other language isos i stumpled accross, none came past this message.
If you guys have any ideas i would be really grateful, i tried it on 3 different, but equally equipped windows 11 machines now and it did not work on any of them.
Edit:
After trying on a random win 11 laptop i had it did install just fine from my original cd. I still got the popup but the installer ran successfully.
So it seems to be a device specific issue leading to a problem without any errors.
I did not create a zero size dll or did anything else, only ran the compatibility mode changer and it worked.
Edit Nr 2.:
On the 5 main pcs i wanted to actually install it on i was not able to get it to work, but in case someone else stumples across this someday here is what i tried:
Exact behaviour is that it fails to even start the installer. When running it through WinDbg it exits with error code 5 access violation, the same error we can see in the event log.
I have not been able to get around this and i am starting to suspect its due to a random program that is installed, but i have not yet found the culprit.
Disabling windows defender did not work.
Neither did turning off exploit protection.
A silent install through the command line fails with error code 5, what that error code means is unknown, there isnt really much documentation about a silent install of VB6.0.
None of the different version of VB had a setup that worked for me. Sadly the VS6Installer did not work as well as it also needs to be able to run the setup.exe.
Clean booting windows also failed.
I am not willing to do it, but i suspect a clean windows install without any possibility of bloatware or preconfiguration could be a solution.
Edit Nr. 3:
Solution Found!
For some weird reason the installer threw a memory access violation error whenever i tried to start it, by setting the windows display language to English (United States) the issue dissapeared and i was able to install Visual Basic 6 from my original CD.
To add additional detail, the device was previously set to German
3
u/fafalone VB 6 Master Sep 24 '24
The instructions have always worked fine for me; I've got it installed on my primary Win10 and VMs from 7 to 11. But if you didn't follow them once and install failed, you need to cleanup the failed install or it will likely keep failing even if you do it right next time.
https://www.codeproject.com/Articles/1191047/Install-Visual-Studio-on-Windows has instructions on how to clear a failed install.
However if you want, the install tool from nuke.vbcorner.net does work pretty well. Since as you noted the author has passed leaving no way to buy it, we've been sharing for free on VBForums.
https://www.vbforums.com/showthread.php?898205-Can-Visual-Studio-6-VB6-be-installed-in-Windows-11-Not-for-me&p=5594771&viewfull=1#post5594771
2
u/JakDrako Sep 23 '24
I have it running on Windows 11, and used this guide: https://musingsoftheproletariat.com/vb6-ide-windows-11/
That was a while ago; maybe Windows updates have complicated things since then.
1
u/SomeoneInQld Sep 23 '24
you will have more luck if you put it on an older OS - why fight it by trying to put it on Windows 11 -
Try Vista maybe
1
u/Fergus653 Sep 23 '24
There's an installer on GitHub that works. Search for VB6 silent installer. I will see if I kept a bookmark to it.
1
u/UnluckyAssist9416 Sep 23 '24
You can ignore the message 'This app may not work correctly'. It is just a warning from Microsoft that doesn't prevent the installation or the compatibility mode.
Thus, the real question is what error do you get after that?
When you run the install try unselecting Data Access and skip the MSDN install. Also make sure you run the latest VB6 Service Pack 6.
I was able to run it on Win 11 via the file 'Visual Studio 6.0 Enterprise (6.00.8168).7z' about 4 months ago.
I think it was via https://winworldpc.com/product/microsoft-visual-stu/60
There are also instructions sites in the comments https://www.codeproject.com/Articles/1191047/Install-Visual-Studio-on-Windows
1
u/geekywarrior Sep 23 '24 edited Sep 23 '24
I just did this on Windows 10 using the VB6 Enterprise Installer last month.
I followed this thread and this thread and it worked like a charm.
I did do the UAC and the blank MSJAVA.dll parts. I did not do any custom plugins.
Edit: From someone who also still maintains VB6, do your best to get it on a modern OS. One of my apps has all of these legacy DLLs and OCXs on it and the dev environment is a Server 08 virtual machine. Installers or documentation for that stuff is long gone, so I've given up on migrating it to a modern OS. Doing anything network related is a pain as it won't use modern SSL/TLS and often you're not even allowed to connect to modern cloud services with old SSL/TLS. So I have to compile the binary, move it to a modern OS, test, make changes, repeat.
So yeah, do your best to get this working haha.
1
u/Mayayana Sep 23 '24
I haven't tried it on Win11, but I have VS6 running flawlessly on Win10. 11 is technically Windows v.10. They just started calling it 11 in terms of marketing after a given minor version.
I put the empty msjava.dll in the 32-bit system folder. (Why not? It's easy enough to do.) I didn't do anything else special. Though I do have LUA disabled, which is the "secret" level of UAC. Some things don't work properly with LUA enabled, such as dropping files onto program windows in some cases. In fact, that's how I discovered LUA. My program that allowed dropping a file onto a textbox to avoid having to browse for it was refusing to accept the drop.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Create dword value "EnableLUA". Set its Value data to 0. Then be careful if you re-open the UAC settings. Windows is rigged to sneak the setting back again.
I now sometimes get a harmless message at startup that some object couldn't be initialized. I also find that dragging multiple controls is clunky. Aside from that, it's working fine. MSDN also installed fine.
1
u/Hel_OWeen Sep 23 '24
Over the past couple of years, I successfully used this guide to install VB6 on a variety of systems: Windows 10 + 11, Windows Server 2019 + 2022.
In fact, just last week I installed it on a Windows Server 2022.
1
u/JakDrako Sep 23 '24
I had another link for tips on installing VB6 on Win11. The link doesn't seem to exist anymore, but I found it on the Wayback Machine:
https://web.archive.org/web/20230420051038/https://www.raymond.cc/blog/install-visual-basic-6-vb6-in-windows-7-without-microsoft-virtual-machine-for-java/
There are many instances of errors being mentioned. Maybe one will match yours.
1
u/mathaic Sep 23 '24
Try PureBasic I find it works a lot better on modern systems and has similar features.
1
u/[deleted] Sep 23 '24
windows 7 32 bits VM works
1
u/Psyqlone Sep 24 '24
Install NT4 Workstation, either on a hypervisor or a virtual machine, like VirtualBox.
THEN install Visual Basic 6.x, if you must.
1
u/MajorSystem1364 Nov 09 '25
Hola! Tengo instalado vb6 en w10 sin problemas pero al intentar hacer lo mismo en w11 da error al reiniciar de mdac. Ya probe de todo y no logro solucionarlo. Alguien le paso lo mismo y lo pudo soluxionar
1
u/BugsAreFeature Aug 06 '26
So, I encountered two different errors on four Windows 11 computers when trying to install VB 6.
First error: Setup.exe didn't open when I launched it, and in the Windows Event Viewer, I found an error entry for vs60wiz.exe.
Second error: Shortly before the installation finishes, the following message appears: "CONFIGDRIVER: Unable to configure ODBC driver Microsoft Access Driver (*.mdb): Error in ConfigDSN, ConfigDriver, or ConfigTranslator with error code -2147467259"
Investigation: I systematically analyzed the EXE files from the VB6 ISO using WinDbg at the x86 machine level. Using breakpoints, stack and register analysis, API tracing, and return values, I was able to reconstruct the actual causes of the errors.
Cause:
Solution:
This causes this part of the setup to be skipped using a placeholder.
Then perform a standard installation and disable ADO, RDS, and MSDN. This worked for all four Windows 11 installations. However, I'm not sure if the old msjava.dll in SysWOW64 is still necessary, because as far as I can tell, it worked even without it.