How to add Serial number to SharePoint config.xml file for silent installation?
Open config.xml file from SharePoint installation files folder. If you can’t find it, just search the folder.
Remove <! – and –> and enter your product key and save the file