- Code: Select all
cd "%~dp0"
cd "%~dp0"
cd "%~dp0..\.."
set WSUSOU_DIR=%cd%
cd "%~dp0"
if not exist "%WSUSOU_DIR%\tmp" (
exit /b 1
)
set TEMP=%WSUSOU_DIR%\tmp
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%
)
rmorrow815 wrote: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
Return to Installation / Updating
Users browsing this forum: No registered users and 123 guests