Headless installation is difference from console mode by the fact it does not require any input from the user so it can be done by soe automation agent like Jenkins or ElectricFlow. However it requires an XML file passed as a parameter to the installer instead of the "-console" option) .
The autoInstalled.xml file used for the Ubuntu example and a version tailored for Windows are attached.
...