Hello Everyone, New user on forum longtime user. I have been running into issue installing patches using WSUS offline. I found the following code which I am using in wsusou_dir\cmd\custom\InitializationHook.cmd
https://forums.wsusoffline.net/viewtopic.php?f=2&t=6876- Code: Select all
cd "%~dp0..\.."
set WSUSOU_DIR=%cd%
cd "%~dp0"
if not exist "%WSUSOU_DIR%\tmp" (
exit /b 1
)
set TEMP=%WSUSOU_DIR%\tmp
The problem was that DISM was still trying to write to temp. I was able to make the following change to /ScratchDir wsusou_dir\cmd\InstallOSUpdate.cmd on lines 187 and 189
- Code: Select all
if exist %systemRoot%\Sysnative\Dism.exe (
%systemRoot%\Sysnative\Dism.exe /Online %DISM_QPARAM% /NoRestart /Add-Package /PackagePath:%1 /IgnoreCheck /ScratchDir:%TEMP%
) else (
%systemRoot%\System32\Dism.exe /Online %DISM_QPARAM% /NoRestart /Add-Package /PackagePath:%1 /IgnoreCheck /ScratchDir:%TEMP%
)
The question I had was how could this change get put into the main wsusoffline download.
Thanks