OfficeDeploymentTool(ODT)是一款命令行工具,可以使用它下載并將 Microsoft 365 應(yīng)用版部署到客戶端計(jì)算機(jī)。ODT可以更好地控制Office 安裝:可以定義要安裝哪些產(chǎn)品和語言、應(yīng)該如何更新這些產(chǎn)品以及是否向用戶顯示安裝體驗(yàn)。
從 Microsoft 下載中心下載Office部署工具。這將得到一個(gè)officedeploymenttool_14326-20404.exe
文件。這是一個(gè)自解壓可執(zhí)行文件。
雙擊運(yùn)行它,在彈出的對(duì)話框中指定一個(gè)空的文件夾,例如D:\OfficeDeploymentTool
。執(zhí)行完成之后,在這個(gè)文件夾中將出現(xiàn)1個(gè)setup.exe
文件和4個(gè)*.xml
文件。
setup.exe
是Office部署工具可執(zhí)行文件,*.xml
文件是示例配置文件。其中,
-
configuration-Office365-x64.xml
文件用于安裝Microsoft 365 Apps for enterprise版本 -
configuration-Office2021Enterprise.xml
文件用于安裝Microsoft 365 Apps for business版本
配置
對(duì)于個(gè)人用戶,推薦安裝Microsoft 365 Apps for enterprise。
- 用記事本打開
configuration-Office365-x64.xml
文件。 - 將
<Language>
標(biāo)簽的ID
屬性修改成zh-cn
。
如下所示:
<!-- Office 365 client configuration file sample. To be used for Office 365 ProPlus apps,
Office 365 Business apps, Project Pro for Office 365 and Visio Pro for Office 365.
For detailed information regarding configuration options visit: http://aka.ms/ODT.
To use the configuration file be sure to remove the comments
The following sample allows you to download and install the 64 bit version of the Office 365 ProPlus apps
and Visio Pro for Office 365 directly from the Office CDN using the Current Channel
settings -->
<Configuration>
<Add OfficeClientEdition="64" Channel="Current">
<Product ID="O365ProPlusRetail">
<Language ID="zh-cn" />
</Product>
<Product ID="VisioProRetail">
<Language ID="zh-cn" />
</Product>
</Add>
<!-- <Updates Enabled="TRUE" Channel="Current" /> -->
<!-- <Display Level="None" AcceptEULA="TRUE" /> -->
<!-- <Property Name="AUTOACTIVATE" Value="1" /> -->
</Configuration>
下載
按住Shift
鍵之后,鼠標(biāo)右擊,選擇“在此處打開 Powershell 窗口”。
在打開的Powershell窗口中,輸入下列代碼下載office:
.\setup.exe /download configuration-Office365-x64.xml
如果Powershell沒有任何提示,表示下載成功。
安裝
接下來,就可以安裝office。同樣也是一行命令行代碼:
.\setup.exe /configure configuration-Office365-x64.xml
這將打開一個(gè)setup.exe窗口,開始安裝office。如果Powershell沒有任何提示,表示安裝成功!文章來源:http://www.zghlxwxcb.cn/news/detail-443372.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-443372.html
到了這里,關(guān)于使用OfficeDeploymentTool工具離線下載安裝Office的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!