使用批處理+WinRAR制作靜默安裝程序包
@echo 安裝完窗口會自動關閉!!! @echo off start /wait Lync.exe /Install /Silent start /wait vcredist_x86/vcredist_x86.exe /q /norestart start /wait DotNetFx40/dotNetFx40_Full_x86_x64.exe /q /norestart start /wait setup.exe /qn
以上批處理命令可以靜默安裝.net framework 4.0,VC++ 2010等安裝包。最后一個setup.exe,是通過C#的Windows Installer來制作的一個安裝包。
每一個.exe文件都有安裝選項,在cmd命令窗口中可以通過輸入setup.exe /? 命令來查看安裝文件的可選參數。批處理可以直接雙擊運行,但我們還可以使用WinRAR來制作exe文件來進行安裝
轉載:
http://blog.csdn.net/chenbin520/article/details/6999504