Fix Error 0-2034 in Office Deployment Toolkit

Recently a friend of mine got Error Code: 0-2034 when running the Office Deployment Toolkit. Working in a medium-sized company, he wanted to deploy Office 2019 (volume license-based) to a handful of devices. He downloaded the executable, extracted the files to a folder, and then double-clicked setup.exe.

The exact error was:

Couldn’t install
We’re sorry, we had a problem installing your Office program(s).
Is your internet connection working? Do you have enough free
space on your main hard drive?
Please try installing again after you’ve checked the above.
Go online for additional help.
Error Code: 0-2034 (0)

After verifying the internet connection and making sure free disk space was not the issue, I applied the following fix.

How to fix error 0-2034 Couldn’t install in ODT

A few seconds after you double-clicked Setup.exe, you will get error 0-2034. The setup.exe is extracted to a folder and is accompanied with the the following files:

setup.exe
configuration-Office365-x64.xml
configuration-Office365-x86.xml
configuration-Office2019Enterprise.xml

The trick to avoiding error 0-2034 is to apply parameters.

In ODT’s setup.exe you’ll need to use /download <xml file> or /configure <xml file>. The included XML-files are samples, but you can try the /download switch to verify the working.

  1. Hold SHIFT while right-clicking in the ODT folder
  2. Click Open Powershell window here
    open powershelle here in explorer
  3. Type .\setup.exe /download .\configuration-Office2019Enterprise.xml
  4. Notice that an Office folder will appear. All Office binaries, as configured in the XML file, are now being downloaded to the Office folder.
  5. Using /configure, setup.exe will download AND install Office.
    odt install ofice 2019

These steps will most likely answer your question about the Office Deployment Tool and error 0-2034.

Alternative fixes for error 0-2034 in Office Deployment Tool

In case you are facing the error while using the /download or /configure switch, these actions may help you out

Delete the Office folder

The downloaded Office data in the ODT folder may be corrupted. Simply delete the folder, and run the setup.exe command again.

Remove all Office products from your device

A conflict may arise when you try to run setup.exe on a computer that already has a version of Office installed. Make sure you’ve backed up all data and make sure you know how to reconfigure (like your Outlook email). Uninstall the Office products and try again.

Try another way to call the XML-file

In my example, I suggested using .\setup.exe /configure .\configuration-Office2019Enterprise.xml. However, some system administrators were helped by using the full path to the XML. Like:

C:\ODT\setup.exe /configure C:\ODT\configuration-Office2019Enterprise.xml

Talking about the XML-file, make sure you don’t make a typo. And sometimes, there’s a duplicate extension, like config.xml.xml. :(
To prevent any dubious problem, Powershell allows you to hit <TAB> to auto-fill or auto-complete the XML filename:

  1. In Powershell, navigate to the ODT folder (or use the SHIFT-Rightclick trick to directly open Powershell in the ODT folder
  2. Type setup.exe /configure .\ -> HIT TAB – see auto-complete in action -> HIT ENTER

Links to resources

To create or customize the installation, you may edit the XML file manually. But it is recommended to use the online Office Customization Tool to generate an XML-file: https://config.office.com/

To download the Office Deployment Tool: https://www.microsoft.com/en-us/download/details.aspx?id=49117

Leave a comment!

If this article did not help you solve your problem, please leave a comment! This website is visited thousands of times a day. There is a good chance that I or someone else has an answer to your question.

3 2 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x