leecher1337 / ntvdmx64

Run Microsoft Windows NTVDM (DOS) on 64bit Editions
813 stars 81 forks source link

Latest version of windows 11 24H2 not working ntvdmx64 #281

Open brobee11 opened 1 week ago

brobee11 commented 1 week ago

Can someone verify if the latest version of Windows 24H2 is working with ntvdmx64 ?

Its broken with error "this app cant run on your PC.

Thanks

leecher1337 commented 1 week ago

I treid 24H2, you have to reinstall NTVDMx64 after upgrade, as appcert-Key is being removed during upgrade, then loader works again. BUT there is another big problem with 24H2: The Conhost V1 support is gone and therefore the console feature NTVDM relies on. Even though it has been promised to make the feature optional in https://github.com/microsoft/terminal/issues/15038#issuecomment-1482004895 I cannot find it in the list of Windows components. So I currently advise NOT to upgrade to 24H2. Someone would need to rewrite https://github.com/microsoft/terminal/ to re-add support for Conhost V1 features, hopefully someone capable who is able to understand all this messy C++ code in the Windows Terminal implementation can do it, any volunteers?

leecher1337 commented 1 week ago

Seems that you can currently work around the issue easily: Get ConhostV1.dll from 23H2 and just place it in your Windows\system32 directory and you are back in action:

image

leecher1337 commented 6 days ago

If you don't have the previous Windows release and its ConhostV1.dll at hand, just extract it from the installation media:

1) Download old 23H2 ISO in the appropriate language version:

Assuming de-de_windows_11_consumer_editions_version_23h2_updated_oct_2024_x64_dvd_4728d672.iso in this example

2) Extract file, i.e. using 7-zip:

set PATH=%PATH%;"C:\Program Files\7-Zip"

7z e de-de_windows_11_consumer_editions_version_23h2_updated_oct_2024_x64_dvd_4728d672.iso sources\install.wim

7z e install.wim 3\Windows\system32\conhostv1.dll

3) Copy extracted conhostv1.dll to windows\system32 directory on machine where you want to install NTVDMx64

leecher1337 commented 2 days ago

Seems like this is way easier than expected. ConhostV1 is still available, it just has to be installed as a "Capability":

powershell Add-WindowsCapability -Online -Name "Microsoft.Windows.Console.Legacy~~~~"