静默安装又称为无人值守安装,软件以默认值自动进行安装。将软件包放在共享,编写批处理可批量自动安装网络上的软件,重装系统后一键装机!实现原理很简单,就是软件打包程序预留了安装参数,安装时可加上。当查不到或没预留静默安装参数时,只能手动点击下一步进行安装。查看安装参数与查看dos命令帮助相同
@echo off title Auto Install color 1F ::WinRAR echo. start /wait \192.168.1.100PublicSoftwareWinRAR_x64.exe /s if %errorlevel%==0 (echo WinRAR x64 -- OK) else (echo WinRAR x64 -- error) ::Flash播放器 echo. start /wait \192.168.1.100PublicSoftwareflashplayer_IE.exe /install if %errorlevel%==0 (echo Flash Player for IE -- OK) else (echo Flash Player for IE -- error) echo. start /wait \192.168.1.100PublicSoftwareflashplayer_nIE.exe /install if %errorlevel%==0 (echo Flash Player not for IE -- OK) else (echo Flash Player not for IE -- error) ::搜狗输入法 echo. start /wait \192.168.1.100PublicSoftwareSougoupinyin.exe /S if %errorlevel%==0 (echo SougouInput -- OK) else (echo SougouInput -- error) ::Foxit Reader echo. start /wait \192.168.1.100PublicSoftwareFoxitReader.exe /VERYSILENT if %errorlevel%==0 (echo Foxit Reader -- OK) else (echo Foxit Reader -- error) ::AVG,没查到静默安装参数,需手动点击 echo. start /wait \192.168.1.100PublicSoftwareavg.exe if %errorlevel%==0 (echo AVG Free -- OK) else (echo AVG Free -- error) ::原版Office 2007,尚未设置config.xml,需手动点击 echo. start /wait \192.168.1.100PublicSoftwareOffice2007setup.exe if %errorlevel%==0 (echo Office Excel -- OK) else (echo Office Excel -- error), echo. start /wait \192.168.1.100PublicSoftwareOffice2007setup.exe if %errorlevel%==0 (echo Office PowerPoint -- OK) else (echo Office PowerPoint -- error) echo. start /wait \192.168.1.100PublicSoftwareOffice2007setup.exe if %errorlevel%==0 (echo Office Word -- OK) else (echo Office Word -- error) echo. pause
最新评论