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/14 02:37] rodolicomicrosoft_windows:officefails [2022/11/14 03:36] (current) rodolico
Line 8: Line 8:
  
 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. 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.
 +
 +**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 a reinstall if necessary.
  
 ===== Summary ===== ===== Summary =====
Line 138: Line 140:
 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. 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.1668415046.txt.gz · Last modified: 2022/11/14 02:37 by rodolico