Offline Install Option
This commit is contained in:
parent
f6ab4e0d6a
commit
81355e0357
1
.github/release.sh
vendored
1
.github/release.sh
vendored
@ -7,3 +7,4 @@ zip -r redists.zip *
|
|||||||
mv redists.zip ../
|
mv redists.zip ../
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf redists/
|
rm -rf redists/
|
||||||
|
zip -r offlineInstall.zip 7za.exe 7za.dll redists.zip Redist-Installer.bat
|
||||||
|
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@ -24,3 +24,4 @@ jobs:
|
|||||||
7za.dll
|
7za.dll
|
||||||
7za.exe
|
7za.exe
|
||||||
redists.zip
|
redists.zip
|
||||||
|
offlineInstall.zip
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
# Misc
|
# Misc
|
||||||
*.bak
|
*.bak
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
redists.zip
|
||||||
|
offlineInstall.zip
|
||||||
|
@ -9,8 +9,22 @@ cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) &&
|
|||||||
title Redist Installer
|
title Redist Installer
|
||||||
|
|
||||||
md %temp%\Redist-Installer >nul 2>&1
|
md %temp%\Redist-Installer >nul 2>&1
|
||||||
cd %temp%\Redist-Installer
|
|
||||||
|
|
||||||
|
if exist "7za.dll" (
|
||||||
|
if exist "7za.exe" (
|
||||||
|
if exist "redists.zip" (
|
||||||
|
move /Y 7za.dll %temp%\Redist-Installer >nul
|
||||||
|
move /Y 7za.exe %temp%\Redist-Installer >nul
|
||||||
|
move /Y redists.zip %temp%\Redist-Installer >nul
|
||||||
|
goto offlineInstall
|
||||||
|
)
|
||||||
|
)
|
||||||
|
) else (
|
||||||
|
goto onlineInstall
|
||||||
|
)
|
||||||
|
|
||||||
|
:onlineInstall
|
||||||
|
cd %temp%\Redist-Installer
|
||||||
echo Downloading 1/3...
|
echo Downloading 1/3...
|
||||||
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://github.com/chxseh/Redist-Installer/releases/download/latest/7za.dll', '7za.dll')"
|
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://github.com/chxseh/Redist-Installer/releases/download/latest/7za.dll', '7za.dll')"
|
||||||
echo Downloading 2/3...
|
echo Downloading 2/3...
|
||||||
@ -18,6 +32,8 @@ powershell -Command "(New-Object Net.WebClient).DownloadFile('https://github.com
|
|||||||
echo Downloading 3/3...
|
echo Downloading 3/3...
|
||||||
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://github.com/chxseh/Redist-Installer/releases/download/latest/redists.zip', 'redists.zip')"
|
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://github.com/chxseh/Redist-Installer/releases/download/latest/redists.zip', 'redists.zip')"
|
||||||
|
|
||||||
|
:offlineInstall
|
||||||
|
cd %temp%\Redist-Installer
|
||||||
:: Extract Redists
|
:: Extract Redists
|
||||||
start /wait /min 7za.exe e redists.zip -y
|
start /wait /min 7za.exe e redists.zip -y
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user