|
本帖最后由 一本小书 于 2019-3-21 05:58 编辑
我整合过程是:应答文件部署过程中调用cmd安装这些东西;
@echo off
color 1f
echo 关闭用户账户控制(UAC)
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /d 0 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /d 0 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "PromptOnSecureDesktop" /d 0 /t REG_DWORD /f
echo 完成
echo 正在安装MVC++、 DX9C 请稍等...安装快慢与硬件配置有关.可能需要几分钟...
pushd "%~dp0"
start /wait 7Zx64.msi /qb
if exist 7Zx64.msi (del /s /q 7Zx64.msi >nul)
start /wait WinRARx64.exe /S
if exist WinRARx64.exe (del /s /q WinRARx64.exe >nul)
start /wait MVCx64x86.exe /sp- /verysilent /suppressmsgboxes /norestart
if exist MVCx64x86.exe (del /s /q MVCx64x86.exe >nul)
start /wait DX9Cx64x86.exe /sp- /verysilent /suppressmsgboxes /norestart
if exist DX9Cx64x86.exe (del /s /q DX9Cx64x86.exe >nul)
start /wait wubi.exe /S
if exist wubi.exe (del /s /q wubi.exe >nul)
del %0 |
|