Install Office 365 with XML files but without manual entry of commands?


win11freak

Member
Local time
4:17 AM
Posts
69
OS
Windows 11 Pro 22H2
Quick question regarding this video tutorial on how to install Office 365 package.

Instead of copying and pasting or manually typing the commands in the Command Prompt, is there a way to make a batch file where all you need to do is just run it without manually entering those commands?

Will this work as below as an example?

I created this command in Notepad and renamed it .bat with the following below but to run it you need Admin rights. So is this good?

cd /d C:\Office\
setup.exe /configure Configuration.xml


 

My Computer

System One

  • OS
    Windows 11 Pro 22H2
I do not want to enter this command manually.

Do I need to add this command in Notepad then rename it as a .BAT file?
setup.exe /configure installconfig.xml

If yes, then can this be also run from a USB flash drive?

Please explain.

Thanks
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Pro 22H2
Setup.exe for Office has an annoying quirk, it must be started from the same folder as your configuration XML file.

The solution is to copy a batch file to the same folder, and have it figure out where that folder currently lives. This solves the problem of when you move the folder around, or copy it to an USB drive where the drive letter is different.

Code:
@echo off
cd /d "%~dp0"
setup.exe /configure installconfig.xml
 

My Computer

System One

  • OS
    Windows 7
Setup.exe for Office has an annoying quirk, it must be started from the same folder as your configuration XML file.

The solution is to copy a batch file to the same folder, and have it figure out where that folder currently lives. This solves the problem of when you move the folder around, or copy it to an USB drive where the drive letter is different.

Code:
@echo off
cd /d "%~dp0"
setup.exe /configure installconfig.xml
So I could just use this command and then run it from my USB flash drive?
 

My Computer

System One

  • OS
    Windows 11 Pro 22H2
Anywhere. The point is wherever the batch file lives, it will figure out its current folder so you don't need to write it in the script itself.
 

My Computer

System One

  • OS
    Windows 7
Quick question regarding this video tutorial on how to install Office 365 package.

Instead of copying and pasting or manually typing the commands in the Command Prompt, is there a way to make a batch file where all you need to do is just run it without manually entering those commands?

Will this work as below as an example?

I created this command in Notepad and renamed it .bat with the following below but to run it you need Admin rights. So is this good?

cd /d C:\Office\
setup.exe /configure Configuration.xml
create something like my script:
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2
    Computer type
    Laptop
    Manufacturer/Model
    Huawei MateBook D15
    CPU
    Ryzen 5 3500U
    Memory
    8GB
    Graphics Card(s)
    Vega 8
    Screen Resolution
    FHD
    Hard Drives
    256GB Samsung SSD + 1TB HDD
    Browser
    Microsoft Edge
    Antivirus
    ESET Smart Security Premium
  • Operating System
    Windows 10 Enterprise LTSC 21H2
    Computer type
    Laptop
    Manufacturer/Model
    MSI GS73 6RF Stealth Pro
    CPU
    intel core i7 6700HQ
    Memory
    16GB
    Graphics card(s)
    Nvidia Geforce GTX1060 (6GB)
    Screen Resolution
    FHD
    Hard Drives
    128GB SSD + 1TB HDD
    Browser
    Microsoft Edge
    Antivirus
    Windows Defender
Except your project makes a decision on how to configure Office, since you provided a XML file.

The point is to use https://config.office.com/deploymentsettings, or Office Deployment Tool (ODT) to make a personal XML file that fits your Office needs (which SKU to install, what apps to skip, activation type).
 

My Computer

System One

  • OS
    Windows 7
Except your project makes a decision on how to configure Office, since you provided a XML file.

The point is to use https://config.office.com/deploymentsettings, or Office Deployment Tool (ODT) to make a personal XML file that fits your Office needs (which SKU to install, what apps to skip, activation type).
Yes. user should create his/her own script and xml file. mine will install PowerPoint, Excel, Word, Outlook and Access only because I don't use other products of office.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2
    Computer type
    Laptop
    Manufacturer/Model
    Huawei MateBook D15
    CPU
    Ryzen 5 3500U
    Memory
    8GB
    Graphics Card(s)
    Vega 8
    Screen Resolution
    FHD
    Hard Drives
    256GB Samsung SSD + 1TB HDD
    Browser
    Microsoft Edge
    Antivirus
    ESET Smart Security Premium
  • Operating System
    Windows 10 Enterprise LTSC 21H2
    Computer type
    Laptop
    Manufacturer/Model
    MSI GS73 6RF Stealth Pro
    CPU
    intel core i7 6700HQ
    Memory
    16GB
    Graphics card(s)
    Nvidia Geforce GTX1060 (6GB)
    Screen Resolution
    FHD
    Hard Drives
    128GB SSD + 1TB HDD
    Browser
    Microsoft Edge
    Antivirus
    Windows Defender

Latest Support Threads

Back
Top Bottom