dartraiden / NVIDIA-patcher

Adds 3D acceleration support for P106-090 / P106-100 / P104-100 / P104-101 / P102-100 / CMP 30HX / CMP 40HX / CMP 50HX / CMP 70HX / CMP 90HX / CMP 170HX mining cards as well as RTX 3060 3840SP and RTX 3080 Ti 20GB.
300 stars 29 forks source link

Command Line Error: Cannot find archive when trying to patch driver version 535.98 #6

Closed alwanyassin closed 1 year ago

alwanyassin commented 1 year ago

I'm trying to patch the latest driver but there is an error message in the patch.bat progress but the progress is still going until it finished (Patch.bat windows closed automatically). Never seen that with older driver before. Is that a problem?

Screenshot 2023-05-31 063054

dartraiden commented 1 year ago

Looks like Nvidia has stopped packaging binaries with makecab utility. No more bi, dl, ex, ic, and sy_ files. Thus 7zip can't find those files and decompress them.

So this whole unpacking step is no longer required (the files are already unpacked) and you can ignore this message.

You can remove these blocks of code if you like, it will speed things up a bit.

7z e "%DRIVER%\*.bi_" -o"%DRIVER%"
7z e "%DRIVER%\*.dl_" -o"%DRIVER%"
7z e "%DRIVER%\*.ex_" -o"%DRIVER%"
7z e "%DRIVER%\*.ic_" -o"%DRIVER%"
7z e "%DRIVER%\*.sy_" -o"%DRIVER
if exist "%DRIVER%\nvd3dum.dll" makecab "%DRIVER%\nvd3dum.dll" /L "%DRIVER%"
if exist "%DRIVER%\nvd3dum_cfg.dll" makecab "%DRIVER%\nvd3dum_cfg.dll" /L "%DRIVER%"
if exist "%DRIVER%\nvd3dumx.dll" makecab "%DRIVER%\nvd3dumx.dll" /L "%DRIVER%"
if exist "%DRIVER%\nvd3dumx_cfg.dll" makecab "%DRIVER%\nvd3dumx_cfg.dll" /L "%DRIVER%"
if exist "%DRIVER%\nvoglv32.dll" makecab "%DRIVER%\nvoglv32.dll" /L "%DRIVER%"
if exist "%DRIVER%\nvoglv64.dll" makecab "%DRIVER%\nvoglv64.dll" /L "%DRIVER%"
if exist "%DRIVER%\nvwgf2um.dll" makecab "%DRIVER%\nvwgf2um.dll" /L "%DRIVER%"
if exist "%DRIVER%\nvwgf2um_cfg.dll" makecab "%DRIVER%\nvwgf2um.dll" /L "%DRIVER%"
if exist "%DRIVER%\nvwgf2umx.dll" makecab "%DRIVER%\nvwgf2umx.dll" /L "%DRIVER%"
if exist "%DRIVER%\nvwgf2umx_cfg.dll" makecab "%DRIVER%\nvwgf2umx_cfg.dll" /L "%DRIVER%"
if exist "%DRIVER%\nvlddmkm.sys" makecab "%DRIVER%\nvlddmkm.sys" /L "%DRIVER%"

I will keep this code for compatibility with previous versions of the driver.