macOS unattended install I know how to create a bootable USB drive from which I can install macOS.

However, the usual macOS installer is interactive, I can't just plug in the installation media and let it do its work. The setup assistant will ask for things like country, computer name, user name, password, wifi settings, etc.

Can I somehow preconfigure the installation media so that it would complete the entire process without any user interaction?
The Apple macOS installer doesn't read settings so people that require a scripted setup add post install scripts or a full fledged MDM to push configuration profiles. You can pick apart the vendor install and roll a combined package - createOSXinstallPkg - but 10.12.4 changes may limit the options there going forward. 

In the end, your solution for this varies according to your scale and the cost to afford user interaction. 


5 installs typically you make an image or use ssh / Apple Remote Desktop to script and push out customizations
50 installs you might use a tool like createOSXinstallPkg or server.app and profile manager
500 to 5000 installs set up an MDM like munki or jamf pro. 


Organizations are successfully deploying "zero touch" solutions but that means IT doesn't have to touch the os - end users still need to initiate and handle some subset of the default graphical / interactive steps. Many like iCloud, diagnostic settings, location and Siri can be preconfigured or automated but not everything.