Microsoft Office
--
Questions
--
Followers
Top Experts
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-86c 3-a5b7e876 bb62">
<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="SharedComputerLicens ing" 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\of fice\16.0\ excel\opti ons" Name="defaultformat" Value="51" Type="REG_DWORD" App="excel16" Id="L_SaveExcelfilesas" />
<User Key="software\microsoft\of fice\16.0\ powerpoint \options" Name="defaultformat" Value="27" Type="REG_DWORD" App="ppt16" Id="L_SavePowerPointfilesa s" />
<User Key="software\microsoft\of fice\16.0\ word\optio ns" Name="defaultformat" Value="" Type="REG_SZ" App="word16" Id="L_SaveWordfilesas" />
</AppSettings>
<Logging Level="Standard" Path="\\XXXX\OfficeLogs\Of ficeOnly" />
</Configuration>
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-86c
<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="SharedComputerLicens
<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\of
<User Key="software\microsoft\of
<User Key="software\microsoft\of
</AppSettings>
<Logging Level="Standard" Path="\\XXXX\OfficeLogs\Of
</Configuration>
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Before installing any version of Office, always run Option 2 from https://support.office.com /en-us/art icle/unins tall-offic e-from-a-p c-9dd49b83 -264a-477a -8fcc-2fdf 5dbf61d8. 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.
@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!






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Yes, you can script OffScrubO15
https://deploymentmadscientist.com/2016/02/08/deploying-microsoft-office-2016-removing-old-versions/
The main article linked there for background reading has now been archived off MSDN but there's still a copy on WebArchive:
https://web.archive.org/web/20150305131459/http://blogs.technet.com/b/odsupport/archive/2011/04/08/how-to-obtain-and-use-offscrub-to-automate-the-uninstallation-of-office-products.aspx
https://deploymentmadscientist.com/2016/02/08/deploying-microsoft-office-2016-removing-old-versions/
The main article linked there for background reading has now been archived off MSDN but there's still a copy on WebArchive:
https://web.archive.org/web/20150305131459/http://blogs.technet.com/b/odsupport/archive/2011/04/08/how-to-obtain-and-use-offscrub-to-automate-the-uninstallation-of-office-products.aspx
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
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.