公司给客户装的OFFICE都是完整版的,手动点下一步下一步有点麻烦,就在网上找看有没有静默安装的方法,没想到还真有,小弟不敢独自收藏,分享给诸位,创建一个txt文本,然后把下载的代码复制到文本里,另存为config.xml 文件即可,注意修改红色部分的注册码,这个大家懂得,要不然就是未注册的版本,然后把config.xml文件放到和office安装目录同级,然后创建一个txt文本,内容为 setup /config config.xml 保存为bat文件执行,office就开始安装了。有关下面各行代码的含义,大家可以看微软的知识库,这里就不一一点名了,自己去看说明文档。
地址是:http://technet.microsoft.com/zh-cn/library/cc179195(v=office.12).aspx
<Configuration Product="Enterprise">
<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
<Logging Type="standard" Path="%temp%" Template="Microsoft Office Enterprise Setup(*).txt" />
<PIDKEY Value="1234567891234567891234567" />
<!-- <USERNAME Value="Customer" /> -->
<!-- <COMPANYNAME Value="MyCompany" /> -->
<!-- <INSTALLLOCATION Value="%programfiles%\Microsoft Office" /> -->
<!-- <LIS CACHEACTION="CacheOnly" /> -->
<!-- <SOURCELIST Value="" /> -->
<!-- <DistributionPoint Location="" /> -->
<!-- <OptionState Id="OptionID" State="absent" Children="force" />
<OptionState Id="ACCESSFiles" State="Local" Children="force" />
<OptionState Id="TOOLSFiles" State="Local" Children="force" />
<OptionState Id="RMSFiles" State="Local" Children="force" />
<OptionState Id="SHAREDFiles" State="Local" Children="force" />
<OptionState Id="PPTFiles" State="Local" Children="force" />
<OptionState Id="OUTLOOKFiles" State="Local" Children="force" />
<OptionState Id="EXCELFiles" State="Local" Children="force" />
<OptionState Id="PubPrimary" State="local" Children="force" />
<OptionState Id="AceRepl" State="local" Children="force" />
<OptionState Id="CAGFiles" State="Local" Children="force" />
<OptionState Id="MSSOAP3" State="local" Children="force" />
<OptionState Id="OsaNonBoot" State="Local" Children="force" /> <OptionState Id="ProofingTools_1036" State="local" Children="force" />
<OptionState Id="ProofingTools_1031" State="local" Children="force" />
<OptionState Id="WISPFiles" State="local" Children="force" /> //handwriting
<OptionState Id="DocServicesFiles" State="local" Children="force" /> //docu update util
<OptionState Id="HTMLSourceEditing" State="local" Children="force" /> //script editor
<OptionState Id="DocumentImagingUtils" State="local" Children="force" /> //scanning,ocr,indexing
<OptionState Id="OISFiles" State="local" Children="force" /> //picture manager
<OptionState Id="OSESupp" State="local" Children="force" /> //sharepoint support
<OptionState Id="QueryFiles" State="local" Children="force" /> //msQuery
<OptionState Id="VisioPreviewerFiles" State="local" Children="force" /> //visio viewer
<OptionState Id="XDOCSFiles" State="local" Children="force" /> //infopath
<OptionState Id="GrooveFiles" State="local" Children="force" /> //groove
<OptionState Id="OneNoteFiles" State="local" Children="force" /> //onenote
<OptionState Id="RefIEBarFiles" State="local" Children="force" /> //research explorer bar
<OptionState Id="WebDriveFiles" State="local" Children="force" /> //hosted webs
<OptionState Id="VBAFiles" State="local" Children="force" /> //VB for applications
<OptionState Id="OfficeDigitalSFiles" State="local" Children="force" /> //vba certificates -->
<!-- <Setting Id="Reboot" Value="IfNeeded" /> -->
<!-- <Command Path="msiexec.exe" Args="/i \\server\share\my.msi" QuietArg="/q" ChainPosition="after" Execute="install" /> -->
</Configuration>
这个好专业 = =
@行畔博客: 还好啦,我也是在网上找到的。