Upload UmeAiRT-Install-ComfyUI.bat
Browse files- UmeAiRT-Install-ComfyUI.bat +28 -28
UmeAiRT-Install-ComfyUI.bat
CHANGED
@@ -1,58 +1,58 @@
|
|
1 |
@echo off
|
2 |
|
3 |
:: ============================================================================
|
4 |
-
:: Section 1:
|
5 |
:: ============================================================================
|
6 |
net session >nul 2>&1
|
7 |
if %errorlevel% NEQ 0 (
|
8 |
-
echo [INFO]
|
9 |
powershell.exe -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
|
10 |
exit
|
11 |
)
|
12 |
|
13 |
:: ============================================================================
|
14 |
-
:: Section 2:
|
15 |
:: ============================================================================
|
16 |
title UmeAiRT ComfyUI Installer
|
17 |
-
echo [OK]
|
18 |
echo.
|
19 |
|
20 |
set "ScriptsFolder=%~dp0scripts"
|
21 |
if not exist "%ScriptsFolder%" (
|
22 |
-
echo [INFO]
|
23 |
mkdir "%ScriptsFolder%"
|
24 |
)
|
25 |
-
echo [INFO]
|
26 |
-
|
27 |
-
echo -
|
28 |
-
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://
|
29 |
-
echo -
|
30 |
-
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://
|
31 |
-
echo -
|
32 |
-
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://
|
33 |
-
echo -
|
34 |
-
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://
|
35 |
-
echo -
|
36 |
-
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://
|
37 |
-
echo -
|
38 |
-
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://
|
39 |
-
|
40 |
-
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://
|
41 |
-
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://
|
42 |
-
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://
|
43 |
-
|
44 |
-
echo [OK]
|
45 |
echo.
|
46 |
|
47 |
:: ============================================================================
|
48 |
-
:: Section 3:
|
49 |
:: ============================================================================
|
50 |
-
echo [INFO]
|
51 |
echo.
|
52 |
|
53 |
REM NOUVEAU : On passe le chemin d'installation en argument avec -InstallPath
|
54 |
powershell.exe -ExecutionPolicy Bypass -File "%ScriptsFolder%\Install-ComfyUI.ps1" -InstallPath "%~dp0"
|
55 |
|
56 |
echo.
|
57 |
-
echo [INFO]
|
58 |
pause
|
|
|
1 |
@echo off
|
2 |
|
3 |
:: ============================================================================
|
4 |
+
:: Section 1: Checking and requesting administrator privileges
|
5 |
:: ============================================================================
|
6 |
net session >nul 2>&1
|
7 |
if %errorlevel% NEQ 0 (
|
8 |
+
echo [INFO] Requesting administrator privileges...
|
9 |
powershell.exe -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
|
10 |
exit
|
11 |
)
|
12 |
|
13 |
:: ============================================================================
|
14 |
+
:: Section 2: Updated scripts from Github
|
15 |
:: ============================================================================
|
16 |
title UmeAiRT ComfyUI Installer
|
17 |
+
echo [OK] Administrator privileges confirmed.
|
18 |
echo.
|
19 |
|
20 |
set "ScriptsFolder=%~dp0scripts"
|
21 |
if not exist "%ScriptsFolder%" (
|
22 |
+
echo [INFO] Creating the folder for the scripts: %ScriptsFolder%
|
23 |
mkdir "%ScriptsFolder%"
|
24 |
)
|
25 |
+
echo [INFO] Downloading the latest versions of the installation scripts...
|
26 |
+
|
27 |
+
echo - Download of Install-ComfyUI.ps1...
|
28 |
+
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://github.com/UmeAiRT/ComfyUI-Auto_installer/raw/refs/heads/main/scripts/Install-ComfyUI.ps1' -OutFile '%ScriptsFolder%\Install-ComfyUI.ps1'"
|
29 |
+
echo - Download of Update-ComfyUI.ps1...
|
30 |
+
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://github.com/UmeAiRT/ComfyUI-Auto_installer/raw/refs/heads/main/scripts/Update-ComfyUI.ps1' -OutFile '%ScriptsFolder%\Update-ComfyUI.ps1'"
|
31 |
+
echo - Download of Download-FLUX-Models.ps1...
|
32 |
+
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://github.com/UmeAiRT/ComfyUI-Auto_installer/raw/refs/heads/main/scripts/Download-FLUX-Models.ps1' -OutFile '%ScriptsFolder%\Download-FLUX-Models.ps1'"
|
33 |
+
echo - Download of Download-WAN-Models.ps1...
|
34 |
+
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://github.com/UmeAiRT/ComfyUI-Auto_installer/raw/refs/heads/main/scripts/Download-WAN-Models.ps1' -OutFile '%ScriptsFolder%\Download-WAN-Models.ps1'"
|
35 |
+
echo - Download of Download-HIDREAM-Models.ps1...
|
36 |
+
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://github.com/UmeAiRT/ComfyUI-Auto_installer/raw/refs/heads/main/scripts/Download-HIDREAM-Models.ps1' -OutFile '%ScriptsFolder%\Download-HIDREAM-Models.ps1'"
|
37 |
+
echo - Download of Download-LTXV-Models.ps1...
|
38 |
+
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://github.com/UmeAiRT/ComfyUI-Auto_installer/raw/refs/heads/main/scripts/Download-LTXV-Models.ps1' -OutFile '%ScriptsFolder%\Download-LTXV-Models.ps1'"
|
39 |
+
|
40 |
+
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://github.com/UmeAiRT/ComfyUI-Auto_installer/raw/refs/heads/main/UmeAiRT-Start-ComfyUI.bat' -OutFile '%~dp0UmeAiRT-Start-ComfyUI.bat'"
|
41 |
+
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://github.com/UmeAiRT/ComfyUI-Auto_installer/raw/refs/heads/main/UmeAiRT-Download_models.bat' -OutFile '%~dp0UmeAiRT-Download_models.bat'"
|
42 |
+
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://github.com/UmeAiRT/ComfyUI-Auto_installer/raw/refs/heads/main/UmeAiRT-Update-ComfyUI.bat' -OutFile '%~dp0UmeAiRT-Update-ComfyUI.bat'"
|
43 |
+
|
44 |
+
echo [OK] Updated scripts.
|
45 |
echo.
|
46 |
|
47 |
:: ============================================================================
|
48 |
+
:: Section 3: Running the main script
|
49 |
:: ============================================================================
|
50 |
+
echo [INFO] Launching the main installation script...
|
51 |
echo.
|
52 |
|
53 |
REM NOUVEAU : On passe le chemin d'installation en argument avec -InstallPath
|
54 |
powershell.exe -ExecutionPolicy Bypass -File "%ScriptsFolder%\Install-ComfyUI.ps1" -InstallPath "%~dp0"
|
55 |
|
56 |
echo.
|
57 |
+
echo [INFO] The script execution is complete.
|
58 |
pause
|