Skip to content

Instantly share code, notes, and snippets.

@pixelgig
Created March 21, 2024 07:14
Show Gist options
  • Select an option

  • Save pixelgig/1aa7fe711e19c75e9162e3663024a9e3 to your computer and use it in GitHub Desktop.

Select an option

Save pixelgig/1aa7fe711e19c75e9162e3663024a9e3 to your computer and use it in GitHub Desktop.
Download & Install Microsoft Office 2016/365 For Completely Free
<Configuration>
<Add OfficeClientEdition="64">
<Product ID="O365ProPlusRetail">
<Language ID="en-US" />
<ExcludeApp ID="Access" />
<ExcludeApp ID="InfoPath" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="OneNote" />
<ExcludeApp ID="Outlook" />
<ExcludeApp ID="Project" />
<ExcludeApp ID="Publisher" />
<ExcludeApp ID="SharePointDesigner" />
<ExcludeApp ID="Visio" />
<ExcludeApp ID="Skype" />
<ExcludeApp ID="Skypeforbusiness" />
<ExcludeApp ID="Groove" />
<ExcludeApp ID="PowerPoint"/>
</Product>
</Add>
<Display Level="Full" AcceptEULA="TRUE" />
</Configuration>
@echo off
cd /d %~dp0
setup.exe /configure config.xml
pause
@pixelgig
Copy link
Author

pixelgig commented Mar 21, 2024

Installing Microsoft Office using Office Deployment Tool

1. Download Office Deployment Tool

  • Download the Office Deployment Tool from here.

2. Extract the Tool

  • Extract the downloaded tool using any file extraction software. We recommend using WinRAR.

3. Remove Unnecessary Files

  • After extraction, navigate to the extracted folder.
  • Delete all files except "EULA" and "Setup.exe". These are essential for the installation process.

4. Download Configuration and Command Files

  • Download the necessary configuration and command files Here.
    • Configuration File (e.g., config.xml): This file specifies the Office products and installation options. You can create one using a text editor.
    • Command Script (e.g., install.cmd): This script will be used to initiate the installation process.

5. Customize Configuration File

  • Open the configuration file (e.g., config.xml) using a text editor.
  • Customize the file according to your installation requirements. Below are some common configurations:
Configuration Description
OfficeClientEdition="64" Downloads and installs the 64-bit edition of Office. If you have 32-bit Windows, replace "64" with "32".
ID="O365ProPlusRetail" Downloads and installs MS Office 365. If you want to install Office 2016, replace it with "ProPlusRetail". For Project/Visio, use "ProjectProRetail" or "VisioProRetail". See list of product IDs here.
ID="en-US" Downloads and installs English version of Office. If you want to change the display language, replace "en-US" with your native language. See list of language IDs here.
<ExcludeApp ID="Skype" /> Defines which products would not be installed. If you want to install Microsoft Access, remove this line. Do the same for other applications.

6. Move Files to Deployment Folder

  • Move the configuration file and command script to the same folder where you extracted the Office Deployment Tool.

7. Run Installation Script

  • Open Command Prompt as Administrator.
  • Navigate to the folder where you extracted the Office Deployment Tool and placed the configuration file and command script.
  • Run the command script (e.g., install.cmd) as Administrator.
  • That's it now it'll automatically install the office.

@km1965
Copy link

km1965 commented Jun 8, 2025

Vous êtes les meilleurs: (la crème de la crème).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment