Office批量版和零售版不一样,不能直接下载ISO安装。下面以office2021标准版说明批量版的安装过程。
安装ODT工具
下载微软Office部署工具ODT。
安装后,安装目录会有setup.exe和configuration-Office2021Enterprise.xml等几个文件。
修改ODT配置
下面是最简的配置文件,Standard2021Volume代表office2021 VOL标准版,MatchOS代表安装语言跟随系统。配置文件也可以使用微软在线配置向导网页生成。
<Configuration>
<Add OfficeClientEdition="64" Channel="PerpetualVL2021">
<Product ID="Standard2021Volume">
<Language ID="MatchOS" />
</Product>
</Add>
<Remove All="True" />
</Configuration>
下载office安装包
打开powershell,运行以下命令下载office安装包,下载完成在当前目录下的office目录,大约2GB。如果下载大小不够说明下载过程出错,安装时会报错,比如 This product can't be installed on the selected update channel ,这个时候重新下载即可。
.\setup.exe /download configuration-Office2021Enterprise.xml
卸载旧版本office,安装新版本
卸载就版本office需要重启,然后执行下面命令安装新版本。
.\setup.exe /configure configuration-Office2021Enterprise.xml