mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-04-30 03:01:33 +00:00
added uninstall bat
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_comfyui
|
||||
title STL [UNINSTALL COMFYUI]
|
||||
setlocal enabledelayedexpansion
|
||||
chcp 65001 > nul
|
||||
|
||||
REM Confirm with the user before proceeding
|
||||
echo.
|
||||
echo %red_bg%╔════ DANGER ZONE ══════════════════════════════════════════════════════════════════════════════╗%reset%
|
||||
echo %red_bg%║ WARNING: This will delete all data of ComfyUI ║%reset%
|
||||
echo %red_bg%║ If you want to keep any data, make sure to create a backup before proceeding. ║%reset%
|
||||
echo %red_bg%╚═══════════════════════════════════════════════════════════════════════════════════════════════╝%reset%
|
||||
echo.
|
||||
set /p "confirmation=Are you sure you want to proceed? [Y/N]: "
|
||||
if /i "%confirmation%"=="Y" (
|
||||
|
||||
REM Remove the Conda environment
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the Conda enviroment: %cyan_fg_strong%comfyui%reset%
|
||||
call conda deactivate
|
||||
call conda remove --name comfyui --all -y
|
||||
call conda clean -a -y
|
||||
|
||||
REM Remove the folder ComfyUI
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the ComfyUI directory...
|
||||
cd /d "%~dp0"
|
||||
rmdir /s /q "%comfyui_install_path%"
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%ComfyUI has been uninstalled successfully.%reset%
|
||||
pause
|
||||
goto :app_uninstaller_image_generation
|
||||
) else (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstall canceled.
|
||||
pause
|
||||
goto :app_uninstaller_image_generation
|
||||
)
|
||||
@@ -0,0 +1,36 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_fooocus
|
||||
title STL [UNINSTALL FOOOCUS]
|
||||
setlocal enabledelayedexpansion
|
||||
chcp 65001 > nul
|
||||
|
||||
REM Confirm with the user before proceeding
|
||||
echo.
|
||||
echo %red_bg%╔════ DANGER ZONE ══════════════════════════════════════════════════════════════════════════════╗%reset%
|
||||
echo %red_bg%║ WARNING: This will delete all data of Fooocus ║%reset%
|
||||
echo %red_bg%║ If you want to keep any data, make sure to create a backup before proceeding. ║%reset%
|
||||
echo %red_bg%╚═══════════════════════════════════════════════════════════════════════════════════════════════╝%reset%
|
||||
echo.
|
||||
set /p "confirmation=Are you sure you want to proceed? [Y/N]: "
|
||||
if /i "%confirmation%"=="Y" (
|
||||
|
||||
REM Remove the Conda environment
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the Conda enviroment: %cyan_fg_strong%fooocus%reset%
|
||||
call conda deactivate
|
||||
call conda remove --name fooocus --all -y
|
||||
call conda clean -a -y
|
||||
|
||||
REM Remove the folder Fooocus
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the Fooocus directory...
|
||||
cd /d "%~dp0"
|
||||
rmdir /s /q "%fooocus_install_path%"
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Fooocus has been uninstalled successfully.%reset%
|
||||
pause
|
||||
goto :app_uninstaller_image_generation
|
||||
) else (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstall canceled.
|
||||
pause
|
||||
goto :app_uninstaller_image_generation
|
||||
)
|
||||
@@ -0,0 +1,36 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_sdwebui
|
||||
title STL [UNINSTALL STABLE DIFUSSION WEBUI]
|
||||
setlocal enabledelayedexpansion
|
||||
chcp 65001 > nul
|
||||
|
||||
REM Confirm with the user before proceeding
|
||||
echo.
|
||||
echo %red_bg%╔════ DANGER ZONE ══════════════════════════════════════════════════════════════════════════════╗%reset%
|
||||
echo %red_bg%║ WARNING: This will delete all data of Stable Diffusion web UI ║%reset%
|
||||
echo %red_bg%║ If you want to keep any data, make sure to create a backup before proceeding. ║%reset%
|
||||
echo %red_bg%╚═══════════════════════════════════════════════════════════════════════════════════════════════╝%reset%
|
||||
echo.
|
||||
set /p "confirmation=Are you sure you want to proceed? [Y/N]: "
|
||||
if /i "%confirmation%"=="Y" (
|
||||
|
||||
REM Remove the Conda environment
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the Conda enviroment: %cyan_fg_strong%sdwebui%reset%
|
||||
call conda deactivate
|
||||
call conda remove --name sdwebui --all -y
|
||||
call conda clean -a -y
|
||||
|
||||
REM Remove the folder stable-diffusion-webui
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the stable-diffusion-webui directory...
|
||||
cd /d "%~dp0"
|
||||
rmdir /s /q "%sdwebui_install_path%"
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Stable Diffusion web UI has been uninstalled successfully.%reset%
|
||||
pause
|
||||
goto :app_uninstaller_image_generation
|
||||
) else (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstall canceled.
|
||||
pause
|
||||
goto :app_uninstaller_image_generation
|
||||
)
|
||||
@@ -0,0 +1,36 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_sdwebuiforge
|
||||
title STL [UNINSTALL STABLE DIFUSSION WEBUI FORGE]
|
||||
setlocal enabledelayedexpansion
|
||||
chcp 65001 > nul
|
||||
|
||||
REM Confirm with the user before proceeding
|
||||
echo.
|
||||
echo %red_bg%╔════ DANGER ZONE ══════════════════════════════════════════════════════════════════════════════╗%reset%
|
||||
echo %red_bg%║ WARNING: This will delete all data of Stable Diffusion web UI Forge ║%reset%
|
||||
echo %red_bg%║ If you want to keep any data, make sure to create a backup before proceeding. ║%reset%
|
||||
echo %red_bg%╚═══════════════════════════════════════════════════════════════════════════════════════════════╝%reset%
|
||||
echo.
|
||||
set /p "confirmation=Are you sure you want to proceed? [Y/N]: "
|
||||
if /i "%confirmation%"=="Y" (
|
||||
|
||||
REM Remove the Conda environment
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the Conda enviroment: %cyan_fg_strong%sdwebuiforge%reset%
|
||||
call conda deactivate
|
||||
call conda remove --name sdwebuiforge --all -y
|
||||
call conda clean -a -y
|
||||
|
||||
REM Remove the folder stable-diffusion-webui
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the stable-diffusion-webui-forge directory...
|
||||
cd /d "%~dp0"
|
||||
rmdir /s /q "%sdwebuiforge_install_path%"
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Stable Diffusion web UI Forge has been uninstalled successfully.%reset%
|
||||
pause
|
||||
goto :app_uninstaller_image_generation
|
||||
) else (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstall canceled.
|
||||
pause
|
||||
goto :app_uninstaller_image_generation
|
||||
)
|
||||
Reference in New Issue
Block a user