mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-01-26 17:09:44 +00:00
added uninstall bat
This commit is contained in:
60
Launcher.bat
60
Launcher.bat
@@ -196,7 +196,7 @@ for /f %%i in ('git rev-list HEAD..%stl_current_branch%@{upstream}') do (
|
||||
)
|
||||
|
||||
REM If no updates are available, skip the update process
|
||||
echo %blue_fg_strong%[INFO] Launcher already up to date.%reset%
|
||||
echo [ %green_fg_strong%OK%reset% ] SillyTavern-Launcher is up to date.%reset%
|
||||
goto :startupcheck_no_update
|
||||
|
||||
:startupcheck_found_update
|
||||
@@ -294,41 +294,41 @@ if %ff_path_exists% neq 0 (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%winget added to PATH.%reset%
|
||||
) else (
|
||||
set "new_path=%current_path%"
|
||||
echo %blue_fg_strong%[INFO] winget already exists in PATH.%reset%
|
||||
echo [ %green_fg_strong%OK%reset% ] Found PATH: winget%reset%
|
||||
)
|
||||
|
||||
REM Check if Winget is installed; if not, then install it
|
||||
REM Check if winget is installed; if not, then install it
|
||||
winget --version > nul 2>&1
|
||||
if %errorlevel% neq 0 (
|
||||
echo %yellow_bg%[%time%]%reset% %yellow_fg_strong%[WARN] Winget is not installed on this system.%reset%
|
||||
echo %yellow_bg%[%time%]%reset% %yellow_fg_strong%[WARN] winget is not installed on this system.%reset%
|
||||
REM Check if the folder exists
|
||||
if not exist "%~dp0bin" (
|
||||
mkdir "%~dp0bin"
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Created folder: "bin"
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Created directory: "bin"
|
||||
) else (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO] "bin" folder already exists.%reset%
|
||||
echo [ %green_fg_strong%OK%reset% ] Found directory: "bin"%reset%
|
||||
)
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing Winget...
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing winget...
|
||||
curl -L -o "%~dp0bin\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" "https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
|
||||
start "" "%~dp0bin\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Winget installed successfully. Please restart the Launcher.%reset%
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%winget installed successfully. Please restart the Launcher.%reset%
|
||||
pause
|
||||
exit
|
||||
) else (
|
||||
echo %blue_fg_strong%[INFO] Winget is already installed.%reset%
|
||||
echo [ %green_fg_strong%OK%reset% ] Found app: %cyan_fg_strong%winget%reset%
|
||||
)
|
||||
|
||||
REM Check if Git is installed if not then install git
|
||||
git --version > nul 2>&1
|
||||
if %errorlevel% neq 0 (
|
||||
echo %yellow_bg%[%time%]%reset% %yellow_fg_strong%[WARN] Git is not installed on this system.%reset%
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing Git using Winget...
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing Git using winget...
|
||||
winget install -e --id Git.Git
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Git is installed. Please restart the Launcher.%reset%
|
||||
pause
|
||||
exit
|
||||
) else (
|
||||
echo %blue_fg_strong%[INFO] Git is already installed.%reset%
|
||||
echo [ %green_fg_strong%OK%reset% ] Found app: %cyan_fg_strong%Git%reset%
|
||||
)
|
||||
|
||||
REM Get the current PATH value from the registry
|
||||
@@ -356,7 +356,7 @@ if %ff_path_exists% neq 0 (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%miniconda3 added to PATH.%reset%
|
||||
) else (
|
||||
set "new_path=%current_path%"
|
||||
echo %blue_fg_strong%[INFO] miniconda3 already exists in PATH.%reset%
|
||||
echo [ %green_fg_strong%OK%reset% ] Found PATH: miniconda3%reset%
|
||||
)
|
||||
|
||||
REM Check if Miniconda3 is installed if not then install Miniconda3
|
||||
@@ -365,13 +365,13 @@ if %errorlevel% neq 0 (
|
||||
echo %yellow_bg%[%time%]%reset% %yellow_fg_strong%[WARN] Miniconda3 is not installed on this system. Could not find command: conda%reset%
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Checking if Miniconda3 exists in app list...
|
||||
winget uninstall --id Anaconda.Miniconda3
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing Miniconda3 using Winget...
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing Miniconda3 using winget...
|
||||
winget install -e --id Anaconda.Miniconda3
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Miniconda3 installed successfully. Please restart the Installer.%reset%
|
||||
pause
|
||||
exit
|
||||
) else (
|
||||
echo %blue_fg_strong%[INFO] Miniconda3 is already installed.%reset%
|
||||
echo [ %green_fg_strong%OK%reset% ] Found app: %cyan_fg_strong%Miniconda3%reset%
|
||||
)
|
||||
|
||||
REM Run PowerShell command to retrieve VRAM size and divide by 1GB
|
||||
@@ -1082,7 +1082,7 @@ echo 2. App Installer
|
||||
echo 3. App Uninstaller
|
||||
echo 4. Editor
|
||||
echo 5. Backup
|
||||
echo 6. Switch branch
|
||||
echo 6. Switch Branch
|
||||
echo 7. Troubleshooting
|
||||
echo 8. Reset Custom Shortcut
|
||||
echo 0. Back
|
||||
@@ -3039,7 +3039,7 @@ set /p editor_txt_comp_choice=Choose Your Destiny:
|
||||
|
||||
REM ####### EDITOR TEXT COMPLETION - BACKEND ##########
|
||||
if "%editor_txt_comp_choice%"=="1" (
|
||||
call :edit_ooba_modules
|
||||
call :edit_ooba
|
||||
) else if "%editor_txt_comp_choice%"=="2" (
|
||||
call :edit_koboldcpp
|
||||
) else if "%editor_txt_comp_choice%"=="3" (
|
||||
@@ -3057,26 +3057,18 @@ REM ############################################################################
|
||||
REM ##################################################################################################################################################
|
||||
REM ##################################################################################################################################################
|
||||
|
||||
|
||||
REM Function to print module options with color based on their status
|
||||
:printModule
|
||||
if "%2"=="true" (
|
||||
echo %green_fg_strong%%1 [Enabled]%reset%
|
||||
) else (
|
||||
echo %red_fg_strong%%1 [Disabled]%reset%
|
||||
)
|
||||
exit /b
|
||||
|
||||
REM ############################################################
|
||||
REM ############## EDIT OOBA MODULES - FRONTEND ################
|
||||
REM ############################################################
|
||||
:edit_ooba_modules
|
||||
:edit_ooba
|
||||
title STL [EDIT OOBA MODULES]
|
||||
cls
|
||||
echo %blue_fg_strong%/ Home / Toolbox / Editor / Text Completion / Edit OOBA Modules%reset%
|
||||
echo -------------------------------------------------------------
|
||||
echo Choose OOBA modules to enable or disable (e.g., "1 2 4" to enable extensions openai, listen, and api-port)
|
||||
|
||||
|
||||
|
||||
REM Display module options with colors based on their status
|
||||
call :printModule "1. extensions openai (--extensions openai)" %ooba_extopenai_trigger%
|
||||
call :printModule "2. listen (--listen)" %ooba_listen_trigger%
|
||||
@@ -3190,13 +3182,17 @@ if defined modules_enable (
|
||||
|
||||
REM Save the constructed Python command to modules-ooba for testing
|
||||
echo ooba_start_command=%python_command%>>%ooba_modules_path%
|
||||
goto :edit_ooba_modules
|
||||
goto :edit_ooba
|
||||
|
||||
REM Function to print module options with color based on their status
|
||||
:printModule
|
||||
if "%2"=="true" (
|
||||
echo %green_fg_strong%%1 [Enabled]%reset%
|
||||
) else (
|
||||
echo %red_fg_strong%%1 [Disabled]%reset%
|
||||
)
|
||||
exit /b
|
||||
|
||||
:edit_koboldcpp
|
||||
echo COMING SOON
|
||||
pause
|
||||
goto :editor_text_completion
|
||||
|
||||
|
||||
:edit_tabbyapi
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_7zip
|
||||
title STL [UNINSTALL-7ZIP]
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstalling 7-Zip...
|
||||
winget uninstall --id 7zip.7zip
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%7-Zip has been uninstalled successfully.%reset%
|
||||
pause
|
||||
goto :app_uninstaller_core_utilities
|
||||
@@ -0,0 +1,9 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_cudatoolkit
|
||||
title STL [UNINSTALL-CUDATOOLKIT]
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstalling CUDA Toolkit...
|
||||
winget uninstall --id Nvidia.CUDA
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%CUDA Toolkit has been uninstalled successfully.%reset%
|
||||
pause
|
||||
goto :app_uninstaller_core_utilities
|
||||
@@ -0,0 +1,36 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_extras
|
||||
title STL [UNINSTALL EXTRAS]
|
||||
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 Extras ║%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%extras%reset%
|
||||
call conda deactivate
|
||||
call conda remove --name extras --all -y
|
||||
call conda clean -a -y
|
||||
|
||||
REM Remove the folder SillyTavern-extras
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the SillyTavern-extras directory...
|
||||
cd /d "%~dp0"
|
||||
rmdir /s /q "%extras_install_path%"
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Extras has been uninstalled successfully.%reset%
|
||||
pause
|
||||
goto :app_uninstaller_core_utilities
|
||||
) else (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstall canceled.
|
||||
pause
|
||||
goto :app_uninstaller_core_utilities
|
||||
)
|
||||
@@ -0,0 +1,24 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_ffmpeg
|
||||
title STL [UNINSTALL-FFMPEG]
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstalling ffmpeg...
|
||||
rmdir /s /q "%ffmpeg_install_path%"
|
||||
|
||||
setlocal EnableDelayedExpansion
|
||||
rem Get the current PATH value from the registry
|
||||
for /f "tokens=2*" %%A in ('reg query "HKCU\Environment" /v PATH') do set "current_path=%%B"
|
||||
|
||||
rem Remove the path from the current PATH if it exists
|
||||
set "new_path=!current_path:%ffmpeg_path_bin%=!"
|
||||
|
||||
REM Update the PATH value in the registry
|
||||
reg add "HKCU\Environment" /v PATH /t REG_EXPAND_SZ /d "!new_path!" /f
|
||||
|
||||
REM Update the PATH value for the current session
|
||||
setx PATH "!new_path!" > nul
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%ffmpeg removed from PATH.%reset%
|
||||
endlocal
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%ffmpeg has been uninstalled successfully.%reset%
|
||||
goto :app_uninstaller_core_utilities
|
||||
@@ -0,0 +1,8 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_nodejs
|
||||
title STL [UNINSTALL-NODEJS]
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstalling Node.js...
|
||||
winget uninstall --id OpenJS.NodeJS
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Node.js has been uninstalled successfully.%reset%
|
||||
goto :app_uninstaller_core_utilities
|
||||
30
bin/functions/Toolbox/Editor/Core_Utilities/uninstall_st.bat
Normal file
30
bin/functions/Toolbox/Editor/Core_Utilities/uninstall_st.bat
Normal file
@@ -0,0 +1,30 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_st
|
||||
title STL [UNINSTALL ST]
|
||||
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 SillyTavern ║%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 folder SillyTavern
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the SillyTavern directory...
|
||||
cd /d "%~dp0"
|
||||
rmdir /s /q "%st_install_path%"
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%SillyTavern has been uninstalled successfully.%reset%
|
||||
pause
|
||||
goto :app_uninstaller_core_utilities
|
||||
) else (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstall canceled.
|
||||
pause
|
||||
goto :app_uninstaller_core_utilities
|
||||
)
|
||||
@@ -0,0 +1,9 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_vsbuildtools
|
||||
title STL [UNINSTALL-VSBUILDTOOLS]
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstalling Visual Studio BuildTools 2022...
|
||||
winget uninstall --id Microsoft.VisualStudio.2022.BuildTools
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Visual Studio BuildTools 2022 has been uninstalled successfully.%reset%
|
||||
pause
|
||||
goto :app_uninstaller_core_utilities
|
||||
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_w64devkit
|
||||
title STL [UNINSTALL-VSBUILDTOOLS]
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstalling w64devkit...
|
||||
rmdir /s /q "%w64devkit_install_path%"
|
||||
|
||||
setlocal EnableDelayedExpansion
|
||||
REM Get the current PATH value from the registry
|
||||
for /f "tokens=2*" %%A in ('reg query "HKCU\Environment" /v PATH') do set "current_path=%%B"
|
||||
|
||||
REM Remove the path from the current PATH if it exists
|
||||
set "new_path=!current_path:%w64devkit_path_bin%=!"
|
||||
|
||||
REM Update the PATH value in the registry
|
||||
reg add "HKCU\Environment" /v PATH /t REG_EXPAND_SZ /d "!new_path!" /f
|
||||
|
||||
REM Update the PATH value for the current session
|
||||
setx PATH "!new_path!" > nul
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%w64devkit removed from PATH.%reset%
|
||||
endlocal
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%w64devkit has been uninstalled successfully.%reset%
|
||||
pause
|
||||
goto :app_uninstaller_core_utilities
|
||||
@@ -0,0 +1,9 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_yq
|
||||
title STL [UNINSTALL-YQ]
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstalling yq...
|
||||
winget uninstall --id MikeFarah.yq
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%yq has been uninstalled successfully.%reset%
|
||||
pause
|
||||
goto :app_uninstaller_core_utilities
|
||||
@@ -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
|
||||
)
|
||||
@@ -0,0 +1,36 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_alltalk
|
||||
title STL [UNINSTALL ALLTALK]
|
||||
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 AllTalk ║%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%alltalk%reset%
|
||||
call conda deactivate
|
||||
call conda remove --name alltalk --all -y
|
||||
call conda clean -a -y
|
||||
|
||||
REM Remove the folder
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the alltalk directory...
|
||||
cd /d "%~dp0"
|
||||
rmdir /s /q "%alltalk_install_path%"
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%AllTalk has been uninstalled successfully.%reset%
|
||||
pause
|
||||
goto :app_uninstaller_voice_generation
|
||||
) else (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstall canceled.
|
||||
pause
|
||||
goto :app_uninstaller_voice_generation
|
||||
)
|
||||
@@ -0,0 +1,36 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_rvc
|
||||
title STL [UNINSTALL RVC]
|
||||
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 RVC ║%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%rvc%reset%
|
||||
call conda deactivate
|
||||
call conda remove --name rvc --all -y
|
||||
call conda clean -a -y
|
||||
|
||||
REM Remove the folder
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the Retrieval-based-Voice-Conversion-WebUI directory...
|
||||
cd /d "%~dp0"
|
||||
rmdir /s /q "%rvc_install_path%"
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%RVC has been uninstalled successfully.%reset%
|
||||
pause
|
||||
goto :app_uninstaller_voice_generation
|
||||
) else (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstall canceled.
|
||||
pause
|
||||
goto :app_uninstaller_voice_generation
|
||||
)
|
||||
@@ -0,0 +1,36 @@
|
||||
@echo off
|
||||
|
||||
:uninstall_xtts
|
||||
title STL [UNINSTALL XTTS]
|
||||
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 XTTS ║%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%xtts%reset%
|
||||
call conda deactivate
|
||||
call conda remove --name xtts --all -y
|
||||
call conda clean -a -y
|
||||
|
||||
REM Remove the folder
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the xtts directory...
|
||||
cd /d "%~dp0"
|
||||
rmdir /s /q "%xtts_install_path%"
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%XTTS has been uninstalled successfully.%reset%
|
||||
pause
|
||||
goto :app_uninstaller_voice_generation
|
||||
) else (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstall canceled.
|
||||
pause
|
||||
goto :app_uninstaller_voice_generation
|
||||
)
|
||||
Reference in New Issue
Block a user