Add one-click installers for admin and user batch scripts

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
GuofangandClaude Sonnet 5.5 committed 2026-10-20 12:52:17 +08:00
1 parent 65a5780e02
commit f8d02dfc70
9 files changed
+91 -20

No files matched your search

@@ -5,7 +5,7 @@ title Install ws2tcp-local
fltmc >nul 2>&1
if errorlevel 1 (
echo Please right-click this file and choose "Run as administrator".
pause
if not defined INSTALL_ALL pause
exit /b 1
)
@@ -17,7 +17,7 @@ set "URL="
for /f "usebackq delims=" %%U in (`powershell -NoProfile -ExecutionPolicy Bypass -Command "(Invoke-RestMethod -UseBasicParsing '%MANIFEST%').windows_url"`) do set "URL=%%U"
if not defined URL (
echo Could not read the download URL from %MANIFEST%.
pause
if not defined INSTALL_ALL pause
exit /b 1
)
@@ -25,7 +25,7 @@ echo Downloading %URL%...
curl.exe -fL --retry 3 -o "%INSTALLER%" "%URL%"
if errorlevel 1 (
echo Download failed.
pause
if not defined INSTALL_ALL pause
exit /b 1
)
@@ -40,7 +40,7 @@ if "%RC%"=="0" (
) else (
echo The installer exited with code %RC%.
)
pause
if not defined INSTALL_ALL pause
exit /b %RC%
:desktop_shortcut