首先下载Office Deployment Tool工具

可以通过搜索引擎搜索关键字:“Office Deployment Tool”,然后转到微软官方下载。

或直接进入以下链接下载:https://www.microsoft.com/en-us/download/details.aspx?id=49117

安装Office Deployment Tool工具

下载会得到个officedeploymenttool_15028-20160程序

点击运行它,会让我们选择下文件目录,我们可以提前创建个Office2021vl的目录,选中这个目录后,程序会把相应的脚本程序安装到该目录。

设置

默认会生成以下文件:

2022/03/30  10:09             1,164 configuration-Office2019Enterprise.xml
2022/03/30  10:09             1,368 configuration-Office2021Enterprise.xml
2022/03/30  10:09             1,014 configuration-Office365-x64.xml
2022/03/30  10:09             1,014 configuration-Office365-x86.xml
2022/03/30  10:09         8,169,320 setup.exe

这里,我们是要下载office2021vl版,所以,可以把configuration-Office2021Enterprise.xml这个文件另存为configuration.xml,然后编辑它,去掉不要的设置,把en-us改为zh-cn,如:

<Configuration>

  <Add OfficeClientEdition="64" Channel="PerpetualVL2021">
      <Product ID="ProPlus2021Volume">
      <Language ID="zh-cn" />
      <ExcludeApp ID="Lync" />
   </Product>
  </Add>

 <Remove All="True" />

 <!--  <RemoveMSI All="True" /> -->

 <!--  <Display Level="None" AcceptEULA="TRUE" />  -->

 <!--  <Property Name="AUTOACTIVATE" Value="1" />  -->

</Configuration>

创建下载和安装bat文件

创建download.bat,内容如下:

setup.exe /download configuration.xml

创建install.bat,内容如下:

setup.exe /configure configuration.xml

下载和安装

下载和安装只要点击前面创建的dwonload.bat或install.bat文件,就能自动从微软官方下载office2021vl版或安装了。

Related content