Fix 'Could Not Install Office' Error Using Office Deployment Tool
Question details
The user is unable to install Microsoft 365 Apps for enterprise using either the Office Deployment Tool or Office.com, despite having removed previous Office installations.

- Product
- Microsoft 365 Apps for enterprise
- Device & OS
- not provided
- Scenario
- Attempting to deploy Microsoft 365 enterprise applications using the Office Deployment Tool (ODT).
- Observed behavior
- The installation fails with a 'Could Not Install Office' error, even after a complete uninstall of previous Office versions.
Ensure you have administrative privileges on your computer and that any previous versions of Microsoft Office have been fully uninstalled using the official Microsoft Support and Recovery Assistant.
Verify Configuration File and Re-download Office Packages
The most common cause of ODT deployment failure is a mismatched configuration file name or corrupted download files. This solution resets the download process.
If the Command Prompt specifies a file name that does not exactly match your configuration file, the installation will immediately fail. Additionally, partial or corrupted downloads in the Office folder can trigger installation errors.
Open your Command Prompt and ensure the configuration file name you typed exactly matches the actual XML file in your folder (e.g., configuration.xml or Visio.xml).
Navigate to the directory where your Office Deployment Tool is located and delete the 'Office' folder containing the previously downloaded installation files.
In Command Prompt, run the download command again by typing: setup.exe /download configuration.xml to fetch fresh installation files.
Once the download completes successfully, run the install command by typing: setup.exe /configure configuration.xml.

Recreate the XML File with the Office Customization Tool
Syntax errors in the configuration file can prevent installation. Generating a new file ensures the syntax and settings are correct.
Switch to WPS Office for a Hassle-Free Experience
Struggling with complex Office Deployment Tool errors? WPS Office offers a free, lightweight, and easy-to-install alternative that eliminates deployment headaches while maintaining full format compatibility.
- 1. Download the Installer: Visit the official WPS website and download the unified, single-click installation package.
- 2. Install WPS Office: Double-click the downloaded setup file and follow the straightforward on-screen prompts to complete the installation.
- 3. Open Your Documents: Launch WPS Office to instantly open, edit, and save your existing Word, Excel, and PowerPoint files without compatibility issues.

Frequently Asked Questions
Why does the Office Deployment Tool command prompt close immediately?
This usually happens if there is a syntax error in your configuration.xml file or if the file is not located in the exact same directory as setup.exe. Ensure the file names match perfectly in your command syntax.
Can I install Microsoft 365 Apps offline using the ODT?
Yes. You first need to use the /download command with your configuration file to download the installation files to a local network share or folder. Afterward, use the /configure command pointing to that local source path in your XML file.
What should I do if the 'Could Not Install Office' error persists after trying ODT?
If the error continues, use the Microsoft Support and Recovery Assistant (SaRA) tool to completely wipe all existing Office traces, check your firewall or antivirus settings that might be blocking the download, and verify your XML configuration details.




