User Tools

Site Tools


microsoft_windows:officefails

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
microsoft_windows:officefails [2022/11/13 23:35] rodolicomicrosoft_windows:officefails [2022/11/14 03:36] (current) rodolico
Line 1: Line 1:
 ====== Installation of Microsoft Office Fails ====== ====== Installation of Microsoft Office Fails ======
  
-We purchased and tried to install Microsoft Office LTSC Standard on a Windows Terminal Server 2019 for a client. It failed with an error 0-2054, which is a general purpose error message that doesn't help at all.+We purchased and tried to install Microsoft Office LTSC Standard on a Windows Terminal Server 2019 for a client. It failed with an error 0-2054, which is a general purpose error message that doesn't help at all. Nothing in any of the logs, just a message saying "maybe you're out of disk space, or maybe you're Internet connection is bad."
  
-Searching the Internet did not bring up a working solution; the ones I tried simply failed again. I still have no idea why the original failed. There were no messages in the log files I could find.+Searching the Internet brought up a lot of people with similar issues, but even the ones that had a solution did not solve this problem. talked to a Microsoft Certified Engineer, who gave some advice also, but again, no success. I still have no idea why the original failed.
  
-The client really needed this installed as soon as possible, so, after a couple of days of searching, I realized it was likely the new installation system Microsoft has set up that was causing the issue. Looking at the download from Microsoft, I realized it was a compressed file that, when uncompressed, left a binary (setup.exe) and one or more XML files. Additional searching showed this is the new norm for Microsoft. setup.exe simply reads the XML file, download the application, then installs. This can all be done manually from the command line.+The client really needed this installed as soon as possible, so, after a couple of days of searching, I realized it was likely the new installation system Microsoft has set up that was causing the issue.
  
-===== Unpacking the installer =====+In the past, you would get a CD or download an ISO from Microsoft and install from there. However, to install Microsoft Office now, you download a small executable which, when run, creates a subdirectory with a binary file (setup.exe) and one or more XML files. It appears the same setup.exe is used for all Microsoft Office installs after 2016, with the XML file configuring which product you are installing.
  
-Download the installer from the link Microsoft sent you. Sometimes it is hard to find, but the installer is generally small (couple of hundred meg) executable. When you run it, it will unpack. If all goes well, it will install, but if not, look for a new subdirectory of wherever you executed from containing setup.exe plus one or more XML files.+**Note**: It appears that saving the ODT directory described below to a safe backup location is equivalent to saving an installation ISO in that it allows you to do reinstall if necessary.
  
 +===== Summary =====
  
 +A lot of time, the new setup just works. However, if it does not, and you're comfortable on the command line, it is less prone to error to do the install from the command line.
  
-===== Manual Run (installer didn't work) =====+  - Visit https://config.office.com/deploymentsettings and fill in the information for the product you are trying to install. 
 +  - Export that configuration to a file on your computer 
 +  - While there, download the latest copy of the Offline Deployment Tool 
 +  - Follow instructions at https://support.microsoft.com/en-us/office/use-the-office-offline-installer-f0a85fe7-118f-41cb-a791-d59cef96ad1c to do the installation.
  
-Microsoft has something called the Offline Deployment Tool. It appears to me to be the exact same thing as the installer above. You can see the instructions at https://support.microsoft.com/en-us/office/use-the-office-offline-installer-f0a85fe7-118f-41cb-a791-d59cef96ad1c. Follow the instructions for your platform.+===== Details and Story =====
  
-Now, all you need is the XML file that defines the installation. If your original installer left things laying around, just grab the correct one of those. I found out much later that all the product id's are listed at https://learn.microsoft.com/en-us/microsoft-365/troubleshoot/installation/product-ids-supported-office-deployment-click-to-run. You can take a current configuration (xml) and modify it by hand for the product you want to install.+==== What happened ====
  
-It would have been much easier if I had used the Office Customization Tool at https://config.office.com/deploymentsettings. This is excellent. It allows you to Create a new configuration with the WebUIthen you can export that to your machineIt even allows you to enter the company name and set some other defaultssuch as using OpenDocument format instead of Microsoft XMLwhich is useful if your organization requires that.+We purchased Microsoft Office LTSC Standard 2021 for the clientGoing to Microsoft's web sitewe downloaded what was supposed to be the installer for it, but it failedBy doing some command line work, we were able to get the installation to work after a few days of working on the projectbut it was installing the wrong version (Professional instead of Standard) so our license key did not work. Sothere were two problems.
  
-<code xml configuration.xml> +The offline deployment tool (ODT) works well, but the instructions are fairly difficult to locate. Most of the instructions assume everything is working in the GUI, not assuming you are having problems which are being hidden. It appears the ODT is simply the standard installer, minus the XML configuration file
-<Configuration ID="24139c1f-d8ac-461c-9a45-522cba2db787"> + 
-  <Add OfficeClientEdition="64" Channel="PerpetualVL2021"> +==== First Try ==== 
-    <Product ID="Standard2021Volume" PIDKEY="KDX7X-BNVR8-TXXGX-4Q7Y8-78VT3"> + 
-      <Language ID="en-us" /> +When the installer failed, it left some files laying around. I looked at them and found setup.exe, plus four XML files. From memory, it appeared two were for Office 365 (32 and 64 bit) and the other two were for Office Enterprise, again 32 and 64 bit versions. 
-      <ExcludeApp ID="Groove" /> + 
-      <ExcludeApp ID="OneDrive" /> +I opened the command prompt as administrator and went into the directory. From there, I ran <code bash>setup.exe /?</codeto see what parameters it might take. I was mainly hoping for a verbose or debugging mode, but no such luck. 
-    </Product> + 
-    <Product ID="VisioStd2019Volume" PIDKEY="7TQNQ-K3YQQ-3PFH7-CCPPM-X4VQ2"> +However, there was a /download option which said it needed a configuration file as the lone parameter (after the option), so I ran <code bash>setup.exe /download nameOf64BitEnterpriseFile.xml</code>. It immediately started downloading a bunch of stuff. No messages, but looking at the network graph on the Task Manager showed that. After a few minutes, I got control of the screen back and saw a new subdirectory under the one setup.exe was in. 
-      <Language ID="en-us" /> + 
-      <ExcludeApp ID="Groove" /> +I played with other parameters, then finally discovered that <code bash>setup.exe /configure nameOf64BitEnterpriseFile.xml</codeactually did the install. 
-      <ExcludeApp ID="OneDrive" /> + 
-    </Product> +==== Failure ==== 
-    <Product ID="ProjectStdXVolume" PIDKEY="D8NRQ-JTYM3-7J2DX-646CT-6836M"> + 
-      <Language ID="en-us" /+Assuming I was done, I patted myself on the back and opened Excel, so I could put in the license key and activateIt would not accept my license key, telling me something like 
-      <ExcludeApp ID="Groove" /> +<code>This product key is for the Volume License version of Microsoft Office LTSC STandard 2021 which isn't currently installed</code>
-      <ExcludeApp ID="OneDrive" /> +
-    </Product> +
-  </Add> +
-  <Property Name="SharedComputerLicensing" Value="0" /+
-  <Property Name="FORCEAPPSHUTDOWN" Value="FALSE" /> +
-  <Property Name="DeviceBasedLicensing" Value="0" /> +
-  <Property Name="SCLCacheOverride" Value="0" /> +
-  <Property Name="AUTOACTIVATE" Value="1" /+
-  <Updates Enabled="TRUE" /> +
-  <RemoveMSI /> +
-  <AppSettings> +
-    <User Key="software\microsoft\office\16.0\excel\options" Name="defaultformat" Value="60" Type="REG_DWORD" App="excel16" Id="L_SaveExcelfilesas" /> +
-    <User Key="software\microsoft\office\16.0\powerpoint\options" Name="defaultformat" Value="52" Type="REG_DWORD" App="ppt16" Id="L_SavePowerPointfilesas" /> +
-    <User Key="software\microsoft\office\16.0\word\options" Name="defaultformat" Value="ODT" Type="REG_SZ" App="word16" Id="L_SaveWordfilesas" /> +
-  </AppSettings> +
-</Configuration> +
-</code>+
  
-Now, open a command prompt. I used administrator privileges, but I'm not sure it was necessaryMove to the ODT directory. +I looked and saw that we had installed the Professional version. I had used the configuration file downloaded from Microsoft's download siteYou log in, you go to your products, select the one you want to install, then it downloads and begins the install. The one I chose was Office LTSC Standard 2021, which is what I boughtUninstalled it and downloaded the 2019 version (same license is for 20162019 and 2021)use the new XML and did the manual install with the same results.
-<code bash>cd \ODT</code> +
-Begin the download. The syntax is //setup /download configurationFileName//Note that it will download the entire install, so this may take some time, and there is no feedback. +
-<code bash>setup /download configuration.xml</code> +
-Finallydo the installation. For some reason, it is called configure, not install, but hey... +
-<code>setup /configure configuration.xml</code> +
-You should soon see the standard installation process happen in the GUI.+
  
-===== Additional Problems =====+==== Solution ====
  
-When I tried this the first 10 or 15 times, it failed because I was installing Office 2021 Professional, and was licensed for Office 2021 Standard. I went back to the download site several times and it still was installing Pro.+This was very perplexing. I opened the XML file
  
 Finally, I looked at the XML file in question. Finally, I looked at the XML file in question.
Line 113: Line 95:
 </code> </code>
  
-I could see this was not what I expectedIt was installing the Professional versionand needed the standard. I attempted to guess what the correct name would beand finally found a list at https://learn.microsoft.com/en-us/microsoft-365/troubleshoot/installation/product-ids-supported-office-deployment-click-to-run, which allowed me to edit the file directlyI removed stuff also, then tried the manual install, and it worked.+Note that this is for //ProPlus2021Volume//. 
 + 
 +Finally, after playing a little, I tried various names to change the productthen found https://learn.microsoft.com/en-us/microsoft-365/troubleshoot/installation/product-ids-supported-office-deployment-click-to-run, which has a list of all available productsReplacing //ProPlus2021Volume// with //Standard2021Volume// and removing a bunch of extra stuff yielded this XML file:
  
 <code xml manual.xml> <code xml manual.xml>
Line 154: Line 138:
 </code> </code>
  
 +When I ran /download followed by /configure, I was able to install the standard version which accepted the product key I had, so my clients were able to use their system, finally.
 +
 +Obviously, someone at Microsoft put the wrong configuration file in the Standard version download.
 +
 +===== Easy way to do it =====
 +
 +After we were able to do this, I did a little more research and found that Microsoft has a very nice configuration tool for the new installation program. It is located at https://config.office.com/deploymentsettings and allows you to use a web form to create the deployment configuration file. In addition to the basics, it has some optional configuration such as choosing which components of a product to install, whether to automatically uninstall older versions, and even setting your company name and a description for all users. It even allows you to set the default file format to Open Document vs Microsoft XML.
 +
 +Finally, when you are exporting the file, it gives you a link to download the latest version of the Office Deployment Tool to ensure you are up to date on that.
 +
 +I'd recommend the following procedure:
 +  - Fill out the form at https://config.office.com/deploymentsettings
 +  - Export the form
 +    - Grab a fresh copy of the Office Deployment tool
 +    - Save the xml file created to a convenient location. Following instructions assume it is named //configuration.xml//
 +  - Create a directory. Recommended by Microsoft is c:\ODT
 +  - Run the new copy of the Office Deployment Tool and point the installer to c:\ODT
 +  - Copy the XML file you downloaded into that directory
 +  - Open a command prompt as administrator
 +    - Move to the created directory<code bash>cd \odt</code>
 +    - Download installation files<code bash>setup /download configuration.xml</code>
 +    - Get a cup of coffee while it finishes (takes a while, especially on a slow connection)
 +    - Start the installation<code bash>setup /configure configuration.xml</code>
 +  - Done.
 +
 +Following is an example of configuration.xml created by the web site. Note that it has a lot more options than I even knew were needed.
 +
 +<code xml configuration.xml>
 +<Configuration ID="24139c1f-d8ac-461c-9a45-522cba2db787">
 +  <Add OfficeClientEdition="64" Channel="PerpetualVL2021">
 +    <Product ID="Standard2021Volume" PIDKEY="KDX7X-BNVR8-TXXGX-4Q7Y8-78VT3">
 +      <Language ID="en-us" />
 +      <ExcludeApp ID="Groove" />
 +      <ExcludeApp ID="OneDrive" />
 +    </Product>
 +    <Product ID="VisioStd2019Volume" PIDKEY="7TQNQ-K3YQQ-3PFH7-CCPPM-X4VQ2">
 +      <Language ID="en-us" />
 +      <ExcludeApp ID="Groove" />
 +      <ExcludeApp ID="OneDrive" />
 +    </Product>
 +    <Product ID="ProjectStdXVolume" PIDKEY="D8NRQ-JTYM3-7J2DX-646CT-6836M">
 +      <Language ID="en-us" />
 +      <ExcludeApp ID="Groove" />
 +      <ExcludeApp ID="OneDrive" />
 +    </Product>
 +  </Add>
 +  <Property Name="SharedComputerLicensing" Value="0" />
 +  <Property Name="FORCEAPPSHUTDOWN" Value="FALSE" />
 +  <Property Name="DeviceBasedLicensing" Value="0" />
 +  <Property Name="SCLCacheOverride" Value="0" />
 +  <Property Name="AUTOACTIVATE" Value="1" />
 +  <Updates Enabled="TRUE" />
 +  <RemoveMSI />
 +  <AppSettings>
 +    <User Key="software\microsoft\office\16.0\excel\options" Name="defaultformat" Value="60" Type="REG_DWORD" App="excel16" Id="L_SaveExcelfilesas" />
 +    <User Key="software\microsoft\office\16.0\powerpoint\options" Name="defaultformat" Value="52" Type="REG_DWORD" App="ppt16" Id="L_SavePowerPointfilesas" />
 +    <User Key="software\microsoft\office\16.0\word\options" Name="defaultformat" Value="ODT" Type="REG_SZ" App="word16" Id="L_SaveWordfilesas" />
 +  </AppSettings>
 +</Configuration>
 +</code>
 +
 +===== Links =====
 +  * https://config.office.com/deploymentsettings
 +  * https://learn.microsoft.com/en-us/microsoft-365/troubleshoot/installation/product-ids-supported-office-deployment-click-to-run
 +  * https://support.microsoft.com/en-us/office/use-the-office-offline-installer-f0a85fe7-118f-41cb-a791-d59cef96ad1c
  
 +These are a couple of the sites I visited that did not help solve the problem, but do show some other issues and solutions.
 +  * https://learn.microsoft.com/answers/questions/896144/cannot-install-office-error-code-0-2054.html
 +  * https://answers.microsoft.com/en-us/msoffice/forum/all/getting-error-0-2054-0-when-using-the-office/d6ae0321-1153-4d2d-a7a9-6654272e25bd
 + 
microsoft_windows/officefails.1668404129.txt.gz · Last modified: 2022/11/13 23:35 by rodolico