找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 15803|回复: 1

[文件操作] 批处理命令安装office和adobe的时候这两个软件能同时安装么

[复制链接]
发表于 2021-9-29 11:21:52 | 显示全部楼层 |阅读模式
我自己第一次用批处理命令做了个自动访问服务器的共享盘上安装软件和打印机的设置,但是我发现命令运行后好像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
发表于 2021-9-29 15:38:38 | 显示全部楼层
回复 1# zyx0217


    start /wait
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-21 02:45 , Processed in 0.013550 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表