365 MDT Deployment - Application returned an unexpected return code: 2147418113

I'm trying to deploy Office 365 via MDT and followed the blog post here: http://renshollanders.nl/2014/02/office-365-automatic-deployment-of-office-365-with-mdt/

The basic steps from the above blog are:

  • Create download.xml file to download the source files (which I downloaded to the MDT server)
  • Create Install.xml file for the install 
  • Create a install.cmd for MDT which if I understand correctly copies the downloaded source files from the server locally to the client machine, then calls setup.exe to run with install.xml 

Download.xml file:

<Configuration>
  <Add SourcePath="D:\Sources\microsoft\office\365\O365BusinessRetail" OfficeClientEdition="32" >
    <Product ID="O365BusinessRetail">
      <Language ID="en-us" />
    </Product>
  </Add>

  <Updates Enabled="TRUE" UpdatePath="D:\Sources\microsoft\office\365\O365BusinessRetail" />
  <Display Level="None" AcceptEULA="TRUE" />
  <Logging Name="Office365Setup.log" Path="%temp%" />
  <Property Name="AUTOACTIVATE" Value="1" />
</Configuration>

Install.xml file:

<Configuration>
  <Add SourcePath="C:\Windows\Temp\O365BusinessRetail" OfficeClientEdition="32" >
    <Product ID="O365BusinessRetail">
      <Language ID="en-us" />
    </Product>
  </Add>

  <Updates Enabled="TRUE" UpdatePath="C:\Windows\Temp\O365BusinessRetail" />
  <Display Level="None" AcceptEULA="TRUE" />
  <Logging Name="Office365Setup.log" Path="%temp%" />
  <Property Name="AUTOACTIVATE" Value="1" />
</Configuration>

Install.cmd

xcopy "%~DP0*.*" C:\Windows\Temp\O365BusinessRetail /E /I /Y

C:\Windows\Temp\O365BusinessRetail\setup.exe /CONFIGURE install.xml

exit

I've been able to verify that the files copy from the server to the %temp% directory of the client machine and that the install command runs, but then it just goes away and I get the following error:

Application Microsoft Office365BusinessPremium returned an unexpected code: -2147418113

I also checked the BDD.log and found this (which isn't much help I don't think but I want to post it anyways):

<![LOG[Return code from command = -2147418113]LOG]!><time="10:08:42.000+000" date="04-24-2015" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[Application Microsoft Office365BusinessPremium returned an unexpected return code: -2147418113]LOG]!><time="10:08:42.000+000" date="04-24-2015" component="ZTIApplications" context="" type="3" thread="" file="ZTIApplications">

I also re-downloaded the source files and was getting the same thing.

From what research I did the error 2147418113 is somewhat of a generic error that doesn't really point to anything specific.  There were a couple other posts in this forum with that error.  One said he resolved it and didn't happen to mention the resolution, and the other was due to bad syntax in the configuration.xml file.

Any ideas would be most welcomed.

April 24th, 2015 1:24pm

Hi Chris,

The Download.xml and Install.xml file above look good to me (by the way, you only need the Add element in your Download.xml, the other elements are not required for download mode).

So you've verified that the source file has been copied to the client machine successfully. I would suggest we first manually try the installation on the client machine, by runing the /CONFIGURE command in an elevated privilege Command Prompt window:

C:\Windows\Temp\O365BusinessRetail\setup.exe /CONFIGURE install.xml

I didn't find any info about this specific error via search, we are still not sure whether the issue is on Office 365 side or MDT side. If we can manually install Office 365 on the client machine, then probably the issue is on MDT side.

Regards,

Ethan Hua
TechNet Community Support

Free Windows Admin Tool Kit Click here and download it now
April 27th, 2015 2:03am

Thanks Ethan.  I'll try to manually install it today and post the results.
April 27th, 2015 9:56am

I opened a command prompt as Administrator and drilled down to the O365BusinessRetail path.  When I run setup.exe /CONFIGURE install.xml it looks like it's doing something and then just returns to the next line.  No error message or anything.  I looked in Event viewer to see if I could see something failing but I don't see any events.  So it looks like it might be something on the O365 side.

Something else that I need to test is trying this on a fresh build.  I probably should have mentioned this in the OP, but I've been testing this on an image we've been deploying.  I don't think there is anything that would interfere with Office (Java, Flash, etc) but I will try using the same cab files I'm using for the deployment on a fresh install of Windows 7.



Free Windows Admin Tool Kit Click here and download it now
April 27th, 2015 10:23am

Ok, looks like I got it working.  Seems the source files were either incorrect or corrupted.

I did a fresh image and installed all of the computer drivers.  Manually copied the old downloaded O365 files to the local machine, ran the setup.exe /configure install.xml command and it behaved the exact same way.

So I went ahead and started from scratch on the client machine.  Downloaded a new Office Deployment Tool, extracted it and downloaded the source files locally to the computer.  Then I ran the setup.exe /configure /configuration.xml (I left the default name of the xml to avoid confusion) and it worked!

So now I copied the new downloaded source files directly to the DeploymentShare$\Applications\O365BusinessPremium folder along with the reconfigured install.cmd, configuration.xml and setup.exe

NEW Install.cmd:

xcopy "%~DP0*.*" C:\Sources\Office365BusinessRetail /E /I /Y

C:\Sources\Office365BusinessRetail\setup.exe /CONFIGURE configuration.xml


exit


NEW Configuration.xml (previously install.xml)

<Configuration>
  <Add SourcePath="C:\Sources\Office365BusinessRetail" OfficeClientEdition="32" >
    <Product ID="O365BusinessRetail">
      <Language ID="en-us" />
    </Product>
  </Add>

  <Updates Enabled="TRUE" UpdatePath="C:\Sources\Office365BusinessRetail" />
  <Display Level="None" AcceptEULA="TRUE" />
  <Logging Name="Office365Setup.log" Path="%temp%" />
  <Property Name="AUTOACTIVATE" Value="1" />
</Configuration>

Hope this helps someone else out there!

  • Marked as answer by ChrisG-NRL 15 hours 9 minutes ago
April 27th, 2015 12:18pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics