Office365 Package and Silent Install

You can use -s on the SFX to hide its extract dialog. Later Windows releases hide Post-Setup activity behind the animation screen, so it really doesn't matter.
 
Only problem will be if you want to have 2 users of the final install of OFFICE (NOT 365), where one is with Outlook and one will not.
That can not be handled with C2R xml install.
 
Last edited:
Prerequisites
These are the following tools I used to accomplish a self-extracting Office 365 deployment for post install. You may use other tools if you're comfortable with them, I just found this process easier with the following tools:
  • Office Deployment Tool (ODT) - download
  • WinRAR - download
  • Windows 10/8.1 Image
Steps
  1. Download ODT from Microsoft's official download page, link above.
  2. Run the ODT executable and accept the EULA, prompt will ask you to extract to a location, choose something easily accessible i.e. C:\Office365\
  3. Navigate to C:\Office365\ and edit the appropriate Office365 XML configuration file for your device architecture (x86/x64).View attachment 4908
  4. For this example we're going to edit the Office365-x64, replace the configuration with the following (refer to MSDN for supported product IDs):
    XML:
    <Configuration>
      <Add OfficeClientEdition="64">
        <Product ID="O365ProPlusRetail">
          <Language ID="en-us" />
        </Product>
      </Add>
    
      <Display Level="None" AcceptEULA="TRUE" />
    
    </Configuration>
  5. Open a Command Prompt window and change the directory to C:\Office365\ run the following command to download the the full office deployment image (this will take some time to complete depending on your internet speed):
    Code:
    setup.exe /download configuration-Office365-x64.xml
    View attachment 4910
  6. Once the download completes, select all files in the directory, open the context menu (right click), and "Add to archive..."View attachment 4911
  7. Checkmark the Create SFX Archive option in the Archiving Options category, verify the Archive name has changed to .exe, and click OKView attachment 4912
  8. Once the self extracting archive is created, right click on the Office356.exe and select "Open with WinRAR"
  9. In the newly opened WinRAR window, select the SFX option on the toolbarView attachment 4913
  10. Click the "Advanced SFX Options" button at the bottom of the prompt
  11. In the General tab, change the Path to extract textbox to an easily identifiable path i.e. C:\Office365_Deploy (leave all other options as default on this page)View attachment 4915
  12. Select the Setup tab, and insert the following into Run after extraction and select "Wait and return exit code" (there are no new lines in the code; pass the appropriate architecture config file):
    Code:
    C:\Office365_Deploy\setup.exe /configure C:\Office365_Deploy\configuration-Office365-x64.xml
    View attachment 4916
  13. Select the Modes tab, and change Silent mode to "Hide All"
  14. Click OK for both prompts to finish
  15. Once WinRAR completes it's commenting process, your SFX executable should look like thisView attachment 4917
  16. Add the Office365.exe application to you Post-Setup for your image, make sure it's the last application in your list as it takes quite some time to install.
Conclusion
This small step by step tutorial is a combination of various sources, varying from MSDN, NTLite Forums, and TechNet. The main SFX tutorial came from davebold370 here on NTLite forums in this post, so all credit should go to him when it comes to the main functionality of this step by step tutorial.

Mod Edit: Corrected step 5, added missing config file.
Installation getting stuck. Please find attached screenshot and help
 

Attachments

  • WhatsApp Image 2023-07-27 at 18.00.31.jpeg
    WhatsApp Image 2023-07-27 at 18.00.31.jpeg
    78.4 KB
  • WhatsApp Image 2023-07-27 at 18.00.32.jpeg
    WhatsApp Image 2023-07-27 at 18.00.32.jpeg
    141.6 KB
I can't recreate this message.

When the original command "setup /configure O365.xml" runs on either Display Level, no output appears in the CMD window.
Running a SFX with -s (silent) option, also returns no output. This suggests another app is sending that message.

You can test your SFX file on a normal system, by running "O365.exe -s" as Administrator and seeing the results.
 
Normally an accept would do the job like comply to EULA in same line in edited setupinstall.xml + the OFFICE image for offline install.
<Display Level="Full" AcceptEULA="TRUE" />
 
Last edited:
My Office365.exe file at the end is being treated as Trojan:Win32/Sabsik.FL.A!ml by microsoft defender, did anyone encounter this?
Why doesn't this file have any icons for Office or O365? I don't think it's an Office Deployment Tool executable.

1702444860285.png
 
Look like this... When i add it again... I made a new office365 from fresh odt... First it didnt report anything and everything work fine.. But after a while it detected trojan again.. I google it and looks like its not defender fault...

I also did a isolation test where i installed a new ios from microsoft... Installed only ntlite and create a 365 file again... Same result happen then as well... The only common thing is my work wifi.. Can it be affected by that??... Any suggestion would be appreciated..
 

Attachments

  • Screenshot 2023-12-08 125416.png
    Screenshot 2023-12-08 125416.png
    29.9 KB
Hello..

Maybe someone in this forum can help. i try to integrate Microsoft Office 365 into Windows 11 ISO installation, I have followed the steps to make the office365 installation into SFX in this thread, but when adding into SetupComplete.cmd file with the parameter office365.exe /S and in SFX file im use C:\Office365_Deploy\setup.exe /configure C:\Office365_Deploy\configuration-Office365-x64.xml parameter, its only makes the extracted file of Office365.exe and unable to executed automatically.

I hope someone will help me. Thanks
 
Hello..

Maybe someone in this forum can help. i try to integrate Microsoft Office 365 into Windows 11 ISO installation, I have followed the steps to make the office365 installation into SFX in this thread, but when adding into SetupComplete.cmd file with the parameter office365.exe /S and in SFX file im use C:\Office365_Deploy\setup.exe /configure C:\Office365_Deploy\configuration-Office365-x64.xml parameter, its only makes the extracted file of Office365.exe and unable to executed automatically.

I hope someone will help me. Thanks
I am new with this as well... But You only need to put the office365.exe file in the post setup of ntlite... No parameter is required and no cmd is needed as well.
 
Back
Top