Link to home
Create AccountLog in
Microsoft Office

Microsoft Office

--

Questions

--

Followers

Top Experts

Avatar of helpdesk03
helpdesk03

Uninstall Office 2013 then install Office 365
Hello, I am having issues uninstalling Office 2013 to install Office 365. I created an xml using the "Office Customization Tool" and it does work if there is no Office installed on the machine. I get the below error in the logs when I run the batch file to kick off the install with Office 2013 installed. Below is also the xml I am using.

Thanks in advance for the help on this!

Error:
Tue 02/11/2020 15:00:12.96 Setup started.  
Tue 02/11/2020 15:01:38.05 Setup ended with error code -2146994846.  


XML File:
<Configuration ID="cbdb9182-19a2-4cc0-86c3-a5b7e876bb62">
  <Add OfficeClientEdition="32" Channel="Broad" SourcePath="\\XXXX\ODT" AllowCdnFallback="TRUE" ForceUpgrade="TRUE">
    <Product ID="O365ProPlusRetail">
      <Language ID="en-us" />
        <ExcludeApp ID="Groove" />
      <ExcludeApp ID="Lync" />
      <ExcludeApp ID="OneDrive" />
        <ExcludeApp ID="Teams" />
    </Product>
  </Add>
  <Property Name="SharedComputerLicensing" Value="0" />
  <Property Name="SCLCacheOverride" Value="0" />
  <Property Name="AUTOACTIVATE" Value="1" />
  <Updates Enabled="TRUE" Branch="Current" />
  <Display Level="None" AcceptEULA="True" />
  <RemoveMSI />
  <AppSettings>
    <Setup Name="Company" Value="XXXX" />
      <User Key="software\microsoft\office\16.0\excel\options" Name="defaultformat" Value="51" Type="REG_DWORD" App="excel16" Id="L_SaveExcelfilesas" />
    <User Key="software\microsoft\office\16.0\powerpoint\options" Name="defaultformat" Value="27" Type="REG_DWORD" App="ppt16" Id="L_SavePowerPointfilesas" />
    <User Key="software\microsoft\office\16.0\word\options" Name="defaultformat" Value="" Type="REG_SZ" App="word16" Id="L_SaveWordfilesas" />
  </AppSettings>
  <Logging Level="Standard" Path="\\XXXX\OfficeLogs\OfficeOnly" />
</Configuration>

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Daniel Pineault (Microsoft MVP)Daniel Pineault (Microsoft MVP)🇨🇦

Before installing any version of Office, always run Option 2 from https://support.office.com/en-us/article/uninstall-office-from-a-pc-9dd49b83-264a-477a-8fcc-2fdf5dbf61d8.  It is the only way to uninstall all the crap from previous installs.  Simply uninstall (using control panel, etc...) leave behind crap that causing problem, so use the link and the utility provided there and then you should be good.

Avatar of helpdesk03helpdesk03

ASKER

@Daniel: That would be okay if I were just doing this on 1 or 2 machines, but I need to do this on about 800 machines. That is why I am looking to script it.

Good luck.  I've always had to do this manually.  It's a real pain!

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


ASKER CERTIFIED SOLUTION
Avatar of helpdesk03helpdesk03

ASKER

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account
Microsoft Office

Microsoft Office

--

Questions

--

Followers

Top Experts

Microsoft Office is an integrated suite of applications that includes Outlook, Word, Excel, Access, PowerPoint, Visio and InfoPath, along with a number of tools to assist in making the individual components work together. Coding within and between the projects is done in Visual Basic for Applications, known as VBA.