1.进入下方网址:
https://www.microsoft.com/en-us/download/details.aspx?id=49117
下载文件:
officedeploymenttool_17126-20132.exe
现在看到下载链接可能失效了,但是下述步骤任然正确。需要下载文件的可以私信发送。
2.进入下方网址配置信息,并且导出xml文件:
https://config.office.com/deploymentsettings
觉得在网站上配置xml麻烦也可以直接写,源码如下:(仅适用win10)
<Configuration ID="4bcf0c78-4d07-4f83-92ee-45a829958418">
<Add OfficeClientEdition="64" Channel="PerpetualVL2021">
<Product ID="ProPlus2021Volume" PIDKEY="FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH">
<Language ID="zh-cn" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="OneDrive" />
<ExcludeApp ID="OneNote" />
<ExcludeApp ID="Outlook" />
</Product>
<Product ID="VisioPro2021Volume" PIDKEY="KNH8D-FGHT4-T8RK3-CTDYJ-K2HT4">
<Language ID="zh-cn" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="OneDrive" />
<ExcludeApp ID="OneNote" />
<ExcludeApp ID="Outlook" />
</Product>
<Product ID="ProjectPro2021Volume" PIDKEY="FTNWT-C6WBT-8HMGF-K9PRX-QV9H8">
<Language ID="zh-cn" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="OneDrive" />
<ExcludeApp ID="OneNote" />
<ExcludeApp ID="Outlook" />
</Product>
<Product ID="LanguagePack">
<Language ID="zh-cn" />
</Product>
</Add>
<Property Name="SharedComputerLicensing" Value="0" />
<Property Name="FORCEAPPSHUTDOWN" Value="FALSE" />
<Property Name="DeviceBasedLicensing" Value="0" />
<Property Name="SCLCacheOverride" Value="0" />
<Property Name="AUTOACTIVATE" Value="1" />
<Updates Enabled="FALSE" />
<RemoveMSI />
</Configuration>
3 将xml拖进 officedeploymenttool_17126-20132.exe 的初始安装目录下。
4 管理员cmd进入安装的文件夹路径:
运行命令:
setup /download config.xml
setup /configure config.xml
安装成功。