forked from cgartlab/Software_Install_Script
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README.md 更新文档
- Loading branch information
Showing
25 changed files
with
610 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# 文件目录及内容 | ||
|
||
`_internal`文件夹内置:`initialization.bat`、`install_noproxy.bat`、`install_proxy.bat`,通过 `start.bat` 引导执行,详细请查阅下方表格。 | ||
|
||
| 文件名 | 说明 | 备注 | | ||
| :--------------------------------------------------- | :------------------------------- | :----------------------------------------------------------------------------------- | | ||
| [start.bat](start.bat) | 说明引导脚本 | | | ||
| [initialization.bat](_internal\initialization.bat) | 初始化引导脚本 | | | ||
| [install_proxy.bat](_internal\install_proxy.batt) | 基于 `v2rayN` 代理的安装执行脚本 | 需要提前打开 `v2rayN`,且不更改默认端口 | | ||
| [install_noproxy.bat](_internal\install_noproxy.bat) | 直连的安装执行脚本 | | | ||
| [software_list.txt](software_list.txt) | 软件安装列表 | 内置:[VisualCppRedist AIO](https://github.com/abbodi1406/vcredist) 和 `.NET 运行时` | | ||
| [extended_list.txt](extended_list.txt) | 扩展列表 | | | ||
| [extended_list_readme.md](extended_list_readme.md) | 扩展列表说明文件 | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
@Echo off&setlocal,EnableDelayedExpansion | ||
|
||
REM License | ||
REM 本项目受 Apache License Version 2.0 约束 | ||
|
||
title 「软件列表初始化」基于 Winget 包管理器的自动化安装脚本 | ||
|
||
:Choice | ||
REM 检查是否存在软件列表文件 | ||
if not exist ".\software_list.txt" ( | ||
title 「初始化失败」列表文件不存在,请添加列表文件 | ||
ECHO 列表文件不存在,请添加列表文件。 | ||
ECHO 无法继续执行,请按任意键退出。 | ||
pause > nul | ||
exit /b ) | ||
cls | ||
ECHO 软件列表初始化完成... | ||
|
||
title 「模式选择」基于 Winget 包管理器的自动化安装脚本 | ||
ECHO 请选择安装模式: | ||
ECHO 1:代理模式,2:直连模式。 | ||
ECHO Ps.代理模式,仅限v2rayN,且端口设置为10808 | ||
set /p Choice=请输入(1/2): | ||
IF /i "!Choice!"=="1" Goto :1 | ||
IF /i "!Choice!"=="2" Goto :2 | ||
Echo 请输入1/2,请按任意键返回重新输入。 | ||
Pause>Nul&Goto :Choice | ||
|
||
REM 满足条件1:执行块 | ||
:1 | ||
title 「代理模式初始化」基于 Winget 包管理器的自动化安装脚本 | ||
|
||
set proxy=v2rayN.exe | ||
|
||
tasklist | find /i "%proxy%" >nul | ||
if %errorlevel% EQU 0 ( | ||
ECHO 发现 "%proxy%" 正在运行,正在进行下一步。 | ||
start .\_internal\install_proxy.bat | ||
exit /b | ||
) else ( | ||
ECHO 错误:"%proxy%"没有运行,请"%proxy%"运行后再尝试运行代理模式。 | ||
ECHO 请按任意键返回选择界面。 | ||
Pause>Nul&Goto :Choice ) | ||
|
||
REM 满足条件2:执行块 | ||
:2 | ||
start .\_internal\install_noproxy.bat | ||
exit /b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@Echo off&setlocal,EnableDelayedExpansion | ||
|
||
REM License | ||
REM 本项目受 Apache License Version 2.0 约束 | ||
|
||
title 「直连模式」基于 Winget 包管理器的自动化安装脚本 | ||
|
||
REM 提权命令 | ||
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit | ||
cd /d "%~dp0" | ||
|
||
REM 执行前再次检查是否存在软件列表文件 | ||
if not exist "..\software_list.txt" ( | ||
echo 错误:列表文件不存在,请添加列表文件。 | ||
echo 安装失败,请按任意键退出。 | ||
pause > nul | ||
exit /b ) | ||
|
||
REM 更换列表源 为 中科大源 | ||
winget source remove winget | ||
winget source add winget https://mirrors.ustc.edu.cn/winget-source | ||
|
||
REM 逐行读取软件列表文件并安装软件 | ||
for /f "tokens=* delims=" %%a in (..\software_list.txt) do ( | ||
echo 正在安装: %%a | ||
winget install %%a | ||
) | ||
|
||
REM 重置列表源 为 官方源 | ||
winget source reset winget | ||
|
||
ECHO 安装结束,请按任意键退出。 | ||
pause > nul | ||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@Echo off&setlocal,EnableDelayedExpansion | ||
|
||
REM License | ||
REM 本项目受 Apache License Version 2.0 约束 | ||
|
||
title 「代理模式」基于 Winget 包管理器的自动化安装脚本 | ||
|
||
REM 提权命令 | ||
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit | ||
cd /d "%~dp0" | ||
|
||
REM 再次检查是否存在软件列表文件 | ||
if not exist "..\software_list.txt" ( | ||
echo 错误:列表文件不存在,请添加列表文件。 | ||
echo 安装失败,请按任意键退出。 | ||
pause > nul | ||
exit /b ) | ||
|
||
REM 更换列表源 为 中科大源 | ||
winget source remove winget | ||
winget source add winget https://mirrors.ustc.edu.cn/winget-source | ||
|
||
REM 设置winget代理配置 | ||
winget settings --enable ProxyCommandLineOptions | ||
|
||
REM 逐行读取软件列表文件并安装软件,且推荐http代理地址 | ||
for /f "tokens=* delims=" %%a in (..\software_list.txt) do ( | ||
ECHO 正在安装: %%a | ||
winget install %%a --proxy http://127.0.0.1:10809 | ||
) | ||
|
||
REM 重置列表源 为 官方源 | ||
winget source reset winget | ||
|
||
ECHO 安装结束,请按任意键退出。 | ||
pause > nul | ||
exit |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@Echo off&setlocal,EnableDelayedExpansion | ||
|
||
REM License | ||
REM 本项目受 Apache License Version 2.0 约束 | ||
|
||
title 基于 Winget 包管理器的自动化安装脚本 | ||
|
||
:Choice | ||
cls | ||
ECHO 前言 | ||
ECHO 脚本会有以下行为: | ||
ECHO 申请管理员权限,更换 Winget 列表源,并在安装结束后重置 Winget 列表源。 | ||
ECHO 脚本会要求您输入值进行确认。 | ||
ECHO Ps.代理模式需要通过 v2rayN 的默认端口进行下载加速 | ||
set /p Choice=请输入(Y/N)以继续: | ||
IF /i "!Choice!"=="Y" Goto :Next | ||
IF /i "!Choice!"=="N" Goto :End | ||
Echo 请输入Y/N,请按任意键返回重新输入。 | ||
Pause>Nul&Goto :Choice | ||
|
||
REM 继续执行块 | ||
:Next | ||
start .\_internal\initialization.bat | ||
exit /b | ||
|
||
REM 终止执行块 | ||
:End | ||
ECHO 用户取消安装,正在退出。 | ||
exit /b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
Microsoft.VCRedist.2005.x86 | ||
Microsoft.VCRedist.2005.x64 | ||
Microsoft.VCRedist.2008.x86 | ||
Microsoft.VCRedist.2008.x64 | ||
Microsoft.VCRedist.2010.x86 | ||
Microsoft.VCRedist.2010.x64 | ||
Microsoft.VCRedist.2012.x86 | ||
Microsoft.VCRedist.2012.x64 | ||
Microsoft.VCRedist.2013.x86 | ||
Microsoft.VCRedist.2013.x64 | ||
Microsoft.VCRedist.2015+.x64 | ||
Microsoft.VCRedist.2015+.x86 | ||
Microsoft.VSTOR | ||
abbodi1406.vcredist | ||
Microsoft.DotNet.AspNetCore.3_1 | ||
Microsoft.DotNet.DesktopRuntime.3_1 | ||
Microsoft.DotNet.AspNetCore.5 | ||
Microsoft.DotNet.DesktopRuntime.5 | ||
Microsoft.DotNet.AspNetCore.6 | ||
Microsoft.DotNet.DesktopRuntime.6 | ||
Microsoft.DotNet.AspNetCore.7 | ||
Microsoft.DotNet.DesktopRuntime.7 | ||
Microsoft.DotNet.AspNetCore.8 | ||
Microsoft.DotNet.DesktopRuntime.8 | ||
Microsoft.DotNet.AspNetCore.Preview | ||
Microsoft.DotNet.DesktopRuntime.Preview | ||
|
||
2dust.v2rayN | ||
Git.Git | ||
Python.Python.3.12 | ||
Python.Launcher | ||
Microsoft.VisualStudioCode | ||
cURL.cURL | ||
SomePythonThings.WingetUIStore | ||
|
||
Google.Chrome.EXE | ||
ZeroTier.ZeroTierOne | ||
WireGuard.WireGuard | ||
|
||
7zip.7zip | ||
RARLab.WinRAR | ||
Entropy6.XMeters | ||
Henry++.MemReduct | ||
Guru3D.Afterburner | ||
Microsoft.PowerToys | ||
CodeSector.TeraCopy | ||
BitSum.ProcessLasso | ||
Klocman.BulkCrapUninstaller | ||
AntibodySoftware.WizTree | ||
CrystalDewWorld.CrystalDiskInfo.ShizukuEdition | ||
|
||
c0re100.qBittorrent-Enhanced-Edition | ||
|
||
PixPin.PixPin | ||
SumatraPDF.SumatraPDF | ||
FastStone.Viewer | ||
agalwood.Motrix | ||
RustDesk.RustDesk | ||
Youqu.ToDesk | ||
Yuanli.uTools | ||
Daum.PotPlayer | ||
NetEase.CloudMusic | ||
|
||
WeMod.WeMod | ||
GOG.Galaxy | ||
Valve.Steam | ||
Ubisoft.Connect | ||
ElectronicArts.EADesktop | ||
EpicGames.EpicGamesLauncher | ||
|
||
Wargaming.GameCenter | ||
Wargaming.WorldOfWarshipsModStation | ||
|
||
Eassos.DiskGenius | ||
|
||
MusicBrainz.Picard | ||
|
||
Sogou.SogouInput | ||
Tencent.WeChat | ||
Tencent.QQ.NT | ||
Alibaba.DingTalk | ||
Telegram.TelegramDesktop | ||
|
||
Figma.Figma | ||
KDE.Krita | ||
BlenderFoundation.Blender | ||
Unity.UnityHub | ||
|
||
ByteDance.JianyingPro 剪映 | ||
|
||
xanderfrangos.twinkletray | ||
|
||
Obsidian.Obsidian | ||
calibre.calibre | ||
yang991178.fluent-reader | ||
|
||
QL-Win.QuickLook | ||
|
||
FiloSottile.mkcert | ||
Tonec.InternetDownloadManager | ||
HandBrake.HandBrake | ||
oldj.switchhosts | ||
Google.PlatformTools | ||
Genymobile.scrcpy | ||
Vertexshare.WebpConverter |
Oops, something went wrong.