Board logo

标题: [文件操作] 批处理命令安装office和adobe的时候这两个软件能同时安装么 [打印本页]

作者: zyx0217    时间: 2021-9-29 11:21     标题: 批处理命令安装office和adobe的时候这两个软件能同时安装么

我自己第一次用批处理命令做了个自动访问服务器的共享盘上安装软件和打印机的设置,但是我发现命令运行后好像adobe没有装成功,是因为adobe reader和office两个不能同时装么,如果是这样的话,批处理命令中有没有办法设置成,等前面一个程序安装完成后再去进行下一个软件的安装?


这是我自己写的,简陋了点


reg add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Associations /v ModRiskFileTypes /t REG_SZ /d .exe /f

net use \\192.168.1.1\install "1234" /user:test\administrator

start \\192.168.1.1\install\360zip_setup.exe /S
start \\192.168.1.1\install\WeCom_3.1.16.3008.exe /S
start \\192.168.1.1\install\AcroRdrDC1900820071_zh_CN /msi /qn
start \\192.168.1.1\install\VPN.exe /quiet /norestart
start \\192.168.1.1\install\office\setup.exe /adminfile office.MSP
cscript c:\Windows\System32\Printing_Admin_Scripts\zh-CN\prnport.vbs -a -r 192.168.0.203 -h 192.168.0.203 -o raw
cscript c:\Windows\System32\Printing_Admin_Scripts\zh-CN\prnport.vbs -a -r 192.168.0.204 -h 192.168.0.204 -o raw
rundll32 printui.dll,PrintUIEntry /if /b "FX DocuCentre-V 3065 PCL 6" /f "\\192.168.1.1\\install\3065PCL\amd64\001\FX6MHAL.inf" /r "192.168.0.203" /m "FX DocuCentre-V 3065 PCL 6" /z
rundll32 printui.dll,PrintUIEntry /if /b "FX DocuCentre-V C3375 PCL 6" /f "\\192.168.1.1\\install\3375PCL\amd64\001\FX6SOAL.inf" /r "192.168.0.204" /m "FX DocuCentre-V C3375 PCL 6" /z
rundll32 printui.dll,PrintUIEntry /y /n "FX DocuCentre-V 3065 PCL 6"

reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Associations /f

net use \\192.168.1.1\install /del
作者: wlishihua    时间: 2021-9-29 15:38

回复 1# zyx0217


    start /wait




欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2