Office 2019 Pro will not install

AmaZiinG

New Member
Hello all,

i am currently trying to get office 2019 installed in post setup. I made myself a custom config.xml and downloaded the office files and put them in "%windir%\Setup\Scripts\Office 2019 Download".
1675095243026.png
In my config I have specified the path.
In my Files folder is my Config.xml and the setup.exe.
I have specified it as follows in NTLite:
1675094874471.png
In the Winodws installation it keeps telling me it can't install it because it can't find a path, see screenshot
1675095416816.png
I have already used other paths:
%systemdrive%\Install\Office 2019 Download.

Can someone tell me what I'm doing wrong? or is my way wrong?
Here my Config.xml:
XML:
<Configuration ID="0891ac4e-5429-4c6a-b69c-6dd2515d0a3e">
  <Add OfficeClientEdition="64" Channel="PerpetualVL2019" SourcePath="%windir%\Setup\Scripts\Office 2019 Download" AllowCdnFallback="FALSE">
    <Product ID="ProPlus2019Volume" PIDKEY="NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP">
      <Language ID="de-de" />
      <ExcludeApp ID="Access" />
      <ExcludeApp ID="Groove" />
      <ExcludeApp ID="Lync" />
      <ExcludeApp ID="OneDrive" />
      <ExcludeApp ID="OneNote" />
      <ExcludeApp ID="Publisher" />
    </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="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>
  <Display Level="None" AcceptEULA="TRUE" />
</Configuration>
 
For Post-Setup commands, you must use absolute paths to config files.

setup.exe /configure configuration-Office365-x64.xml
< benutzen als "%WINDIR%\Setup\Files\configuration-Office365-x64.xml" >

setup.exe /configure "%WINDIR%\Setup\Files\configuration-Office365-x64.xml"
 
I have customized the command and tested unfortunately it did not work in NTLite. I did it now different, I put the offline installation of Office, the config.xml and the setup.exe in the scripts folder.
About a batch script I let start the command.
Code:
@echo off
cd %windir%\Setup\Scripts
setup.exe /configure "%WINDIR%\Setup\Scripts\configuration-Office365-x64.xml"
This has now no more error message given to me and Office was installed.
This is how it looks now in NTLite etc.:
1675106362027.png
1675106392959.png

XML:
<Configuration ID="0891ac4e-5429-4c6a-b69c-6dd2515d0a3e">
  <Add OfficeClientEdition="64" Channel="PerpetualVL2019" SourcePath="%WINDIR%\Setup\Scripts\Office 2019 Download" AllowCdnFallback="FALSE">
    <Product ID="ProPlus2019Volume" PIDKEY="NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP">
      <Language ID="de-de" />
      <ExcludeApp ID="Access" />
      <ExcludeApp ID="Groove" />
      <ExcludeApp ID="Lync" />
      <ExcludeApp ID="OneDrive" />
      <ExcludeApp ID="OneNote" />
      <ExcludeApp ID="Publisher" />
    </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="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>
  <Display Level="None" AcceptEULA="TRUE" />
</Configuration>
 
Office Setup has this stupid need to run inside the same folder as its downloaded files. Some sources say it will use the path inside the config XML, but my experience is otherwise.
 
As i remember, if you place ODT setup.exe and configuration.xml inside Office folder, then you don't need to specify SourcePath, it's auto detected
 
How does it get the install files? With the XML but it is not in there.
To install Office products offline, you first download the Office Deployment Tool and create a XML.

The setup.exe downloads the offline install files for the Office edition you listed in the XML. And the same tool is used in Post-Setup to install those files. There are several guides online which you can find, which go in better detail on how to configure the XML.
 
Back
Top