一、編輯自動安裝的腳本:
端看Office版本,如Standard,則在Standard.WW內編輯config.xml。
內容如下
<Configuration Product="Standard">
<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
<!-- <Logging Path="%temp%" Template="Microsoft Office Standard Setup(*).txt" /> -->
<PIDKEY Value="ABCDEFGHIJKLMNOPQRSTUVWXY" />
<!-- <USERNAME Value="Customer" /> -->
<COMPANYNAME Value="company name" />
<!-- <INSTALLLOCATION Value="%programfiles%\Microsoft Office" /> -->
<!-- <LIS CACHEACTION="CacheOnly" /> -->
<!-- <SOURCELIST Value="\\server1\share\Office12;\\server2\share\Office12" /> -->
<!-- <DistributionPoint Location="\\server\share\Office12" /> -->
<OptionState State="Local" Children="force" />
<!-- <Setting Value="IfNeeded" /> -->
<!-- <Command Path="msiexec.exe" Args="/i \\server\share\my.msi" QuietArg="/q" ChainPosition="after" Execute="install" /> -->
</Configuration>
Display:安裝過程顯示模式,CompletionNotice:安裝完成提示
SuppressModel:忽略錯誤訊息繼續安裝,AcceptEula:授權協議
PIDKEY Value:Office 2007 序號,
OptionState ID:可透過setup.xml查詢
State:Local從我的電腦執行,Advertise第一次使用時才安裝,Absent無法使用
Children:force套用到所有子程式
二、SP修補
下載最新的SP2,使用命令提示字元並切換到SP2程式所在目錄
office2007sp2-kb953195-fullfile-zh-tw.exe /quiet /extract:[folder name]
會產生更新檔在該程式所在目錄下的[folder name]裡面,把裡面所有的程式複製到Office2007\Update資料夾內,在安裝時即會自動安裝更新檔。
三、Plug-in整合
利用notepad編寫自動安裝檔,office2007.cmd
start /wait setup.exe
start /wait SaveAsPDFandXPS.exe /quiet
start /wait office2007-kb974810-fullfile-x86-glb.exe /quiet
echo 安裝完成請按任一鍵結束
四、修改Autorun.inf
[autorun]
OPEN= office2007.cmd
ICON=SETUP.EXE,0
shell\configure=&Configure...
shell\configure\command= office2007.cmd
shell\install=&Install...
shell\install\command= office2007.cmd