1, Download Office 2016 Deployment Tool
https://www.microsoft.com/en-us/download/details.aspx?id=49117
2, create a configuration.xml similar to below
<Configuration> <Add SourcePath="F:" OfficeClientEdition="64" > <Product ID="ProplusRetail"> <Language ID="en-us" /> <ExcludeApp ID="Access" /> <ExcludeApp ID="Groove" /> <ExcludeApp ID="InfoPath" /> <ExcludeApp ID="Lync" /> <ExcludeApp ID="Outlook" /> <ExcludeApp ID="Project" /> <ExcludeApp ID="Publisher" /> <ExcludeApp ID="SharePointDesigner" /> <ExcludeApp ID="Visio" /> </Product> </Add> </Configuration>
3. Put the configure file in the same folder with deployment tool, then run below command as administrator:
setup.exe /configure configuration.xml
Done
Please note you need to modify Product ID to match the version you purchased,
For office 2016, use Product ID=”ProplusRetail”;
For office 365, use Product ID=”O365ProPlusRetail”