mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Added fallback if powershell not installed
This commit is contained in:
parent
44295673dc
commit
cbaadb6fc9
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -11,7 +11,15 @@ echo [36m"* |___/ |_| *
|
||||
echo [36m"*********************************************************************"[0m
|
||||
echo [36mWelcome to the DCS Olympus v{{OLYMPUS_VERSION_NUMBER}} installation script. Please wait while the necessary dependencies are installed![0m
|
||||
echo:
|
||||
echo [30m[106mThe 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![0m
|
||||
|
||||
|
||||
WHERE /q powershell
|
||||
if %ERRORLEVEL% NEQ 0 (
|
||||
echo [30m[106mPowershell not installed in the system, no output log available.[0m
|
||||
) else (
|
||||
echo [30m[106mThe 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![0m
|
||||
)
|
||||
|
||||
timeout /t 5
|
||||
|
||||
echo Checking if node.js framework is installed...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user