标签:
日常维护中,多台电脑需要安装Office,可是Office包含的组件又很多(Excel/Word/PPT/OUTLOOK/ACCESS等),有些是不需要的,默认情况下Office都默认安装,一个一个调整过于麻烦,经过查找资料,找到了相应的解决办法。
方法:
用记事本打开安装目录下Microsoft_Office_2010\ProPlus.ww\config.xml文件,修改如下(默认只安装Excel\Word\PPT\Outlook)
<Configuration Product="ProPlus"> <Display Level="full" CompletionNotice="yes" SuppressModal="no" AcceptEula="yes" /> <!-- <Logging Type="standard" Path="%temp%" Template="Microsoft Office Professional Plus Setup(*).txt" /> --> <!-- <USERNAME Value="Customer" /> --> <!-- <COMPANYNAME Value="MyCompany" /> --> <!-- <INSTALLLOCATION Value="%programfiles%\Microsoft Office" /> --> <!-- <LIS CACHEACTION="CacheOnly" /> --> <!-- <LIS SOURCELIST="\\server1\share\Office;\\server2\share\Office" /> --> <!-- <DistributionPoint Location="\\server\share\Office" /> --> <!-- <OptionState Id="OptionID" State="absent" Children="force" /> --> <OptionState Id="WORDFiles" State="Local" Children="force" /> <OptionState Id="EXCELFiles" State="Local" Children="force" /> <OptionState Id="OUTLOOKFiles" State="Local" Children="force" /> <OptionState Id="PPTFiles" State="Local" Children="force" /> <OptionState Id="ACCESSFiles" State="Absent" Children="force" /> <OptionState Id="VisioPreviewerFiles" State="Absent" Children="force" /> <OptionState Id="PubPrimary" State="Absent" Children="force" /> <OptionState Id="OneNoteFiles" State="Absent" Children="force" /> <OptionState Id="XDOCSFiles" State="Absent" Children="force" /> <OptionState Id="GrooveFiles" State="Absent" Children="force" /> <OptionState Id="SHAREDFiles" State="Local" Children="force" /> <OptionState Id="TOOLSFiles" State="Local" Children="force" /> <!-- <Setting Id="SETUP_REBOOT" Value="IfNeeded" /> --> <!-- <Command Path="%windir%\system32\msiexec.exe" Args="/i \\server\share\my.msi" QuietArg="/q" ChainPosition="after" Execute="install" /> --> </Configuration>
通过观察,不难发现,关键在State,Local为默认安装,Absent为不安装。
下面附上Office 2013的配置文件
<Configuration Product="ProPlus"> <Display Level="full" CompletionNotice="yes" SuppressModal="no" AcceptEula="yes" /> <!-- <Logging Type="standard" Path="%temp%" Template="Microsoft Office Professional Plus Setup(*).txt" /> --> <!-- <USERNAME Value="Customer" /> --> <!-- <COMPANYNAME Value="MyCompany" /> --> <!-- <INSTALLLOCATION Value="%programfiles%\Microsoft Office" /> --> <!-- <LIS CACHEACTION="CacheOnly" /> --> <!-- <LIS SOURCELIST="\\server1\share\Office;\\server2\share\Office" /> --> <!-- <DistributionPoint Location="\\server\share\Office" /> --> <!-- <OptionState Id="OptionID" State="absent" Children="force" /> --> <OptionState Id="WORDFiles" State="Local" Children="force" /> <OptionState Id="EXCELFiles" State="Local" Children="force" /> <OptionState Id="OUTLOOKFiles" State="Local" Children="force" /> <OptionState Id="PPTFiles" State="Local" Children="force" /> <OptionState Id="ACCESSFiles" State="Absent" Children="force" /> <OptionState Id="VisioPreviewerFiles" State="Absent" Children="force" /> <OptionState Id="PubPrimary" State="Absent" Children="force" /> <OptionState Id="OneNoteFiles" State="Absent" Children="force" /> <OptionState Id="XDOCSFiles" State="Absent" Children="force" /> <OptionState Id="GrooveFiles2" State="Absent" Children="force" /> <OptionState Id="LyncCoreFiles" State="Absent" Children="force" />> <OptionState Id="SHAREDFiles" State="Local" Children="force" /> <OptionState Id="TOOLSFiles" State="Local" Children="force" /> <!-- <Setting Id="SETUP_REBOOT" Value="IfNeeded" /> --> <!-- <Command Path="%windir%\system32\msiexec.exe" Args="/i \\server\share\my.msi" QuietArg="/q" ChainPosition="after" Execute="install" /> --> </Configuration>
Microsoft Office 2010/2013安装组件预设
标签:
原文地址:http://www.cnblogs.com/wubian/p/4244535.html