23 lines
439 B
Batchfile
23 lines
439 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set "SCRIPT_DIR=%~dp0"
|
|
set "PS1=%SCRIPT_DIR%Install-SoftwareSequentially.ps1"
|
|
|
|
if not exist "%PS1%" (
|
|
echo [ERROR] PowerShell script not found: "%PS1%"
|
|
exit /b 1
|
|
)
|
|
|
|
echo Running "%PS1%"...
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%PS1%" %*
|
|
set "RC=%ERRORLEVEL%"
|
|
|
|
if not "%RC%"=="0" (
|
|
echo [ERROR] Script finished with exit code %RC%
|
|
exit /b %RC%
|
|
)
|
|
|
|
echo [OK] Script finished successfully.
|
|
exit /b 0
|