Files
SwarmUI/install-windows.bat
maedtb 4f07f74e7d Update install-windows.bat to not exit command prompt on error (#37)
The '/b' switch will exit the current script, but not close the command prompt.
2024-07-01 13:16:12 -07:00

28 lines
721 B
Batchfile

@echo off
cd /d "%~dp0"
if exist SwarmUI (
echo SwarmUI is already installed in this folder. If this is incorrect, delete the 'SwarmUI' folder and try again.
pause
exit /b
)
if exist SwarmUI.sln (
echo SwarmUI is already installed in this folder. If this is incorrect, delete 'SwarmUI.sln' and try again.
pause
exit /b
)
winget install Microsoft.DotNet.SDK.8 --accept-source-agreements --accept-package-agreements
winget install --id Git.Git -e --source winget --accept-source-agreements --accept-package-agreements
git clone https://github.com/mcmonkeyprojects/SwarmUI
cd SwarmUI
call .\make-shortcut.bat
call .\launch-windows.bat --launch_mode webinstall
IF %ERRORLEVEL% NEQ 0 ( pause )