Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TheGeneral007 opened this issue Oct 12, 2023 · 7 comments
Open

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

TheGeneral007 opened this issue Oct 12, 2023 · 7 comments

Comments

@TheGeneral007
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

Hi leecher1337,

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

@TheGeneral007
Copy link
Author

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 TheGeneral007 reopened this Oct 14, 2023
@TheGeneral007
Copy link
Author

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
Copy link

agentxan commented Oct 15, 2023

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants