首页 > 代码库 > Microsoft Office 2010/2013安装组件预设
Microsoft Office 2010/2013安装组件预设
日常维护中,多台电脑需要安装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="http://www.mamicode.com/Customer" /> --> <!-- <COMPANYNAME Value="http://www.mamicode.com/MyCompany" /> --> <!-- <INSTALLLOCATION Value="http://www.mamicode.com/%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="http://www.mamicode.com/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="http://www.mamicode.com/Customer" /> --> <!-- <COMPANYNAME Value="http://www.mamicode.com/MyCompany" /> --> <!-- <INSTALLLOCATION Value="http://www.mamicode.com/%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="http://www.mamicode.com/IfNeeded" /> --> <!-- <Command Path="%windir%\system32\msiexec.exe" Args="/i \\server\share\my.msi" QuietArg="/q" ChainPosition="after" Execute="install" /> --></Configuration>
Microsoft Office 2010/2013安装组件预设
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。