Source : https://www.microsoft.com/en-us/download/details.aspx?id=49117
Office Deployment Tool
SETUP [mode] [path]
SETUP /download [path to configuration file]
SETUP /configure [path to configuration file]
SETUP /packager [path to configuration file] [output path]
SETUP /help
/download Downloads files to create an Office installation source
/configure Adds, removes, or configures an Office installation
/packager Produces an Office App-V package from an Office installation source
/help Displays this message
Project.xml
<Configuration> <Add OfficeClientEdition="32" Channel="Broad" AllowCdnFallback="TRUE" ForceUpgrade="TRUE"> <Product ID="ProjectStdXVolume"> <Language ID="fr-fr" /> </Product> </Add> <Display Level="None" AcceptEULA="TRUE"/> <Property Name="SharedComputerLicensing" Value="0" /> <Property Name="PinIconsToTaskbar" Value="TRUE" /> <Property Name="SCLCacheOverride" Value="0" /> <Property Name="FORCEAPPSHUTDOWN" Value="TRUE"/> <Updates Enabled="TRUE" /> <RemoveMSI> <IgnoreProduct ID="VisPro" /> <IgnoreProduct ID="VisStd" /> <IgnoreProduct ID="SPD" /> <IgnoreProduct ID="InfoPath" /> <IgnoreProduct ID="InfoPathR" /> </RemoveMSI> <AppSettings> <Setup Name="Company" Value="LFB" /> </AppSettings> </Configuration>
download.project.bat
@echo off Set vCommand="%~dp0setup.exe" /download "%~dp0Project.xml" %vCommand% Exit /B %errorlevel%install.project.bat
@echo off Set vCommand="%~dp0setup.exe" /configure "%~dp0Project.xml" %vCommand% Exit /B %errorlevel%