Upload UmeAiRT-Install-ComfyUI.bat
Browse files- UmeAiRT-Install-ComfyUI.bat +54 -0
UmeAiRT-Install-ComfyUI.bat
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
|
| 3 |
+
:: ============================================================================
|
| 4 |
+
:: Section 1: Vérification et demande des privilèges d'administrateur
|
| 5 |
+
:: ============================================================================
|
| 6 |
+
net session >nul 2>&1
|
| 7 |
+
if %errorlevel% NEQ 0 (
|
| 8 |
+
echo [INFO] Demande des privilèges d'administrateur...
|
| 9 |
+
powershell.exe -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
|
| 10 |
+
exit
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
:: ============================================================================
|
| 14 |
+
:: Section 2: Mise à jour des scripts depuis Hugging Face
|
| 15 |
+
:: ============================================================================
|
| 16 |
+
title UmeAiRT ComfyUI Installer
|
| 17 |
+
echo [OK] Privileges d'administrateur confirmes.
|
| 18 |
+
echo.
|
| 19 |
+
|
| 20 |
+
set "ScriptsFolder=%~dp0scripts"
|
| 21 |
+
if not exist "%ScriptsFolder%" (
|
| 22 |
+
echo [INFO] Creation du dossier pour les scripts : %ScriptsFolder%
|
| 23 |
+
mkdir "%ScriptsFolder%"
|
| 24 |
+
)
|
| 25 |
+
echo [INFO] Telechargement des dernieres versions des scripts d'installation...
|
| 26 |
+
|
| 27 |
+
echo - Telechargement de Install-ComfyUI.ps1...
|
| 28 |
+
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/ComfyUI/Install-ComfyUI.ps1?download=true' -OutFile '%ScriptsFolder%\Install-ComfyUI.ps1'"
|
| 29 |
+
echo - Telechargement de Download-FLUX-Models.ps1...
|
| 30 |
+
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/Model_downloader/Download-FLUX-Models.ps1?download=true' -OutFile '%ScriptsFolder%\Download-FLUX-Models.ps1'"
|
| 31 |
+
echo - Telechargement de Download-WAN-Models.ps1...
|
| 32 |
+
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/Model_downloader/Download-WAN-Models.ps1?download=true' -OutFile '%ScriptsFolder%\Download-WAN-Models.ps1'"
|
| 33 |
+
echo - Telechargement de Download-HIDREAM-Models.ps1...
|
| 34 |
+
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/Model_downloader/Download-HIDREAM-Models.ps1?download=true' -OutFile '%ScriptsFolder%\Download-HIDREAM-Models.ps1'"
|
| 35 |
+
echo - Telechargement de Download-LTXV-Models.ps1...
|
| 36 |
+
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/Model_downloader/Download-LTXV-Models.ps1?download=true' -OutFile '%ScriptsFolder%\Download-LTXV-Models.ps1'"
|
| 37 |
+
|
| 38 |
+
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/ComfyUI/UmeAiRT-Start-ComfyUI.bat' -OutFile '%~dp0UmeAiRT-Start-ComfyUI.bat'"
|
| 39 |
+
|
| 40 |
+
echo [OK] Scripts mis a jour.
|
| 41 |
+
echo.
|
| 42 |
+
|
| 43 |
+
:: ============================================================================
|
| 44 |
+
:: Section 3: Exécution du script principal
|
| 45 |
+
:: ============================================================================
|
| 46 |
+
echo [INFO] Lancement du script d'installation principal...
|
| 47 |
+
echo.
|
| 48 |
+
|
| 49 |
+
REM NOUVEAU : On passe le chemin d'installation en argument avec -InstallPath
|
| 50 |
+
powershell.exe -ExecutionPolicy Bypass -File "%ScriptsFolder%\Install-ComfyUI.ps1" -InstallPath "%~dp0"
|
| 51 |
+
|
| 52 |
+
echo.
|
| 53 |
+
echo [INFO] L'execution du script est terminee.
|
| 54 |
+
pause
|