Added fallback if powershell not installed

This commit is contained in:
Pax1601 2023-12-21 15:33:28 +01:00
parent 44295673dc
commit cbaadb6fc9
2 changed files with 17 additions and 2 deletions

View File

@ -1,2 +1,9 @@
@echo OFF
powershell ".\scripts\install.bat | tee output.log"
WHERE /q powershell
if %ERRORLEVEL% NEQ 0 (
.\scripts\install.bat
) else (
powershell ".\scripts\install.bat | tee output.log"
)

View File

@ -11,7 +11,15 @@ echo "* |___/ |_| *
echo "*********************************************************************"
echo Welcome to the DCS Olympus v{{OLYMPUS_VERSION_NUMBER}} installation script. Please wait while the necessary dependencies are installed!
echo:
echo The output of this script is also available in the file %CD%\output.log. If you encounter any error, make sure to attach that file to your help request!
WHERE /q powershell
if %ERRORLEVEL% NEQ 0 (
echo Powershell not installed in the system, no output log available.
) else (
echo The output of this script is also available in the file %CD%\output.log. If you encounter any error, make sure to attach that file to your help request!
)
timeout /t 5
echo Checking if node.js framework is installed...