Office365 Package and Silent Install

HI francis11,

I have done as you suggested and searched for setup.exe 16.0.17830.20162 from august 12 without success.

If you have it, please upload it so that I may download it.

Thank you.
Official MS download url in first post here
 
HI francis11,

Thank you very much. setup.exe 16.0.17830.20162 did the trick. It was able to install Office LTSC 2024 just fine.

I also discovered another solution to the problem I was having trying to install Office LTSC 2024.

I had been getting this error message: "Couldn't install. We couldn't find the specified configuration file. Check the file path and file name." Error Code: 0-2048(0)

This had meant that I was unable to install Office LTSC 2024.

I was getting that error message when using the latest version of setup.exe from ODT. This was because I was not using an elevated command prompt when running this command: setup /configure configuration.xml

Once I used an elevated command prompt, that error message disappeared and I was able to install Office LTSC 2024.
 
It's a shame that the ODT is not as complete as the installation options present in the MSI installer of an Office 2016 for example
Certainly, the MSI installers are for the VL versions, and not Retail if I remember correctly
 
This can be useful to check your download choices before adding to NTLite:

Office Tool Plus -snip1.png
Office Tool Plus -snip2.png
Office Tool Plus -snip3.png
Office Tool Plus -snip4.png
Office Tool Plus -snip5.png
Office Tool Plus -snip6.png
 

Attachments

  • Office Tool Plus -snip6.png
    Office Tool Plus -snip6.png
    121.7 KB
Office Tool Plus looks like a similar implementation of MS's Office Customization Tool, but as a standalone app.

This app does require you to install .NET 8 Runtime. Making it more of tool for experts who are doing Office setup all the time, and less for casual or one-time users. But useful if you need finer control over the deployment settings.
 
when making the configuration.xml from OCT , what should i put in the source path for local source?
Thanks!
 
when making the configuration.xml from OCT , what should i put in the source path for local source?
Thanks!
ODT (Office Deployment Tool) exe but be aware there's still a failure with latest one even MS updates it - look my post here an you'll find a working setup.exe. Latest can be downloaded from here and still not working.
 
The SourcePath setting is optional, and not needed if you're following this guide's steps.

For downloading, it specifies a source folder if you have a local network share which keeps pre-downloaded files around, or where to find the files when installing. When undefined, ODT looks in the current folder path.
 
The SourcePath setting is optional, and not needed if you're following this guide's steps.

For downloading, it specifies a source folder if you have a local network share which keeps pre-downloaded files around, or where to find the files when installing. When undefined, ODT looks in the current folder path.
Updated to latest OFFICE and still not working default from current folder.
 
After some testing find out how to solve the errorcode "0-2048-0" when try install Office with the latest updated ODT.
After updating to latest ODT of march 7. and unpacked the setup file into install folder i changed the cmd code for setup from
setup /configure configuration.xml
to
@echo off
cd /d "%~dp0"
setup /configure configuration.xml
and run as administrator instead of dubble clicking the setup file, which worked earlier.
And it's working. Finally.
 
Last edited:
Just tested both SFX and Setup methods and they work. May be useful to recommend a cleanup command to get rid of the install files.
 
The problem with cleanup is knowing when the Office Setup process is actually finished, because it immediately backgrounds itself and isn't a blocking process. When it doesn't block, your wrapper script needs extra logic to watch for Setup to exit.
 
The problem with cleanup is knowing when the Office Setup process is actually finished, because it immediately backgrounds itself and isn't a blocking process. When it doesn't block, your wrapper script needs extra logic to watch for Setup to exit.
How can this be implemented? I have two before-logon steps in Post-Setup to handle installing Office.
  1. The BAT file you recommended for use
  2. [ /c rmdir /S /Q "C:\office" ] command right afterwards
Upon reaching the desktop I confirmed that Office was indeed installed and that the "office" folder exists on the root of the drive, but is empty.
Is it possible to add a /wait command to your script?

Or should I shift the cleanup commands to after-logon?

Edit: Cleanup and clarification
 
Last edited:
Confirmed that shifting the cleanup command to after-logon got rid of the installation folder entirely.
 
I'm trying to make a new Windows 11 Pro ISO with an integrated M365 apps offline installation (Business Premium). I used the latest setup.exe and xml file which I customised because my previous needed some changes.

I use the bat file from garlin and I just add it to the ISO in Post Setup before logon machine right after the line where it should copy the contents of the Office offline folder to the %systemroot%\Office365_Deploy folder.
I have a bunch of other apps it installs but for some reason it gets stuck on a cmd window "Administrator: Post-Setup tasks", where I can see it installed Edge/Teams/... but then the cursor just stays blinking for a very long time.

If I use my xml and setup.exe when I log in for the first time, it installs just fine.

Any idea on how to troubleshoot this? Cause it used to work :-(

Maybe I'm confused on your second step in your guide, how to add the Office folder to the ISO? You just do that via NTLite itself right? Or do you copy the Office365_Deploy contents to the root of the iso manually?

Confused :-/

If you're not customizing the list of specific Office apps, this offline folder averages 3.1 GB. This gets worse when you consider the disk space temporarily involved during SFX setup:
- 1st instance when Post-Setup copies SFX file to local $$ or $1 folder​
- 2nd instance when it's self-extracted​
- 3rd instance when Office gets installed​

Why not save time, and run setup.exe directly off the DVD/USB drive?

1. Exclude any unwanted Office apps from your config, before running setup.exe /download.
XML:
<Configuration>
  <Add OfficeClientEdition="64">
    <Product ID="O365ProPlusRetail">
      <Language ID="en-us" />
      <ExcludeApp ID="Access" />
      <ExcludeApp ID="Lync" />
      <ExcludeApp ID="Publisher" />
    </Product>
  </Add>

  <Updates Enabled="TRUE" />
  <Display Level="None" AcceptEULA="TRUE" />
</Configuration>

2. Copy the entire folder (including setup.exe & the XML) to the mounted ISO's directory under new folder \Office365_Deploy.

3. Copy/paste this script as RunOfficeSetup.bat and run from Post-Setup (with no parameters).
Code:
@echo off
for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
    if exist "%%i:\Office365_Deploy" (
        set DRIVE=%%i
        goto :EXIT
    )
)

:EXIT
cd /d %DRIVE%:\Office365_Deploy && .\setup.exe /configure configuration-Office365-x64.xml

View attachment 7781
 
Back
Top