leecher1337 / ntvdmx64

Run Microsoft Windows NTVDM (DOS) on 64bit Editions
778 stars 80 forks source link

Autobuild expects the nt5src.7z in which path ? #244

Open TheGeneral007 opened 8 months ago

TheGeneral007 commented 8 months ago

It checks and expects it to be in the folder where the .cmd is running from and then it is copied My setup is in C:\NTVDMBLD4\ As soon as I see the "Sorry" then I can guess that the VDM Redirector part didn't succeed. However I see it is being copied to the folder C:\NTVDMBLD4\w\ntvdmpatch\minnt\work\

image

Could you please tell me what went wrong ?

leecher1337 commented 8 months ago

Hi,

My guess is that there are various versions of this .zip file that may be packed differently than the prepare-script expects it. Just have a look at prepare.cmd:

if exist %workdir%\nt5src.7z 7z x -y %workdir%\nt5src.7z Win2k3\3790src2.cab Win2k3\3790src4.cab  -o%workdir%

so that it basically wants to have is the following files from the archive: Win2k3\3790src2.cab Win2k3\3790src4.cab

In your screenshot, it says "no files to process" which means, these files weren't found inside the archive at the expected location. My advice - given that these files are present inside your .7z archive somewhere - is that you put these 2 files in your autobuild dir instead of nt5src.7z in the autobuild directory, as the script tells you, then you should be good to go.

TheGeneral007 commented 8 months ago

Hi,

You are right about the various versions. I've found 3 so far, but all without the .cab's being in there, They somehow all are unpacked already into a folder/file-structure. I can see the folder \src\base\mvdm\vdmredir\

That would mean I have to continue my search or it should be made possible to expand the prepare.cmd to look for the files that he wants as an extra option, but for this I would need your advice or help.

TheGeneral007 commented 8 months ago

Hi leecher1337,

thank you for directing me in the right direction. Problem solved.

TheGeneral007 commented 8 months ago

Hi leecher1337,

I see 2 announcements, I don't understand why it gets to the "Continuing without enhanced VDMREDIR.DLL", because they are there And the second one is "Archive with Errors" Is this pointing to the 3790src2.cab, 3790src4.cab or to the NTOSBE-master.zip ? They all 3x open fine.

image

TheGeneral007 commented 8 months ago

I am still struggling on how to get the VDMREDIR.DLL successful into the autobuild. I have put an echo in there to see if the value is indeed a "1" and it is, so I don't understand how it gets into the echo OK, Continuing

if not "%W2K3SRC%"=="1 ("

part of the autobuild-ccpu-chk.cmd

if not "%NOW2K3%"=="" goto w2k3chkd
:chkw2k3
set W2K3SRC=
if exist %PREREQ%\nt5src.7z set W2K3SRC=1
if exist %PREREQ%\Win2K3.7z set W2K3SRC=1
if exist %PREREQ%\3790src2.cab (
  if exist %PREREQ%\3790src4.cab set W2K3SRC=1
)
echo MG, pauze, and show contents of W2K3SRC
echo.W2K3SRC=%W2K3SRC%
echo.W2K3SRCMSG=%W2K3SRCMSG%
pause
if not "%W2K3SRC%"=="1" (
  if not "%W2K3MSG%"=="1" (
    echo Windows 7 and above only ship with a crippled VDMREDIR.DLL that i.e. doesn't
    echo support mounting network shares via MS-DOS calls.
    echo This repository contains code that is able to partly restore Windows XP
    echo Networking functions of VDMREDIR.DLL, however the leaked Windows Server 2003
    echo is needed for that.
    echo So it is recommended to place the leaked sourceode as a prerequisite here too.
    echo It can have one of these names:
    echo * nt5src.7z
    echo * Win2K3.7z
    echo * 3790src2.cab, 3790srv4.cab
    echo.
    echo Now please either download them and put it here and afterwards continue
    echo or continue now to go without it (you will get the limited vdmredir.dll)
    pause
    set W2K3SRCMSG=1
    goto chkw2k3
  ) else (
    echo OK, Continuing without enhanced VDMREDIR.DLL then
  )
)

Every time I tried it with a new cmd-window, to prevent values being kept in variables. I hope you can point me to my mistake. @leecher1337

agentxan commented 8 months ago

I think the ( and ) in this line need to be escaped with ^

echo or continue now to go without it (you will get the limited vdmredir.dll)

change to

echo or continue now to go without it ^(you will get the limited vdmredir.dll^)
TheGeneral007 commented 8 months ago

Thank you, @agentxan, Yes, that was or is the problem. Now it needs a fix. @leecher1337