I ran this command on the extracted SQLEXPR_x64_ENU.exe, which is the SQL Server 2019 x64 Express Installer:
SETUP.EXE /qs /ACTION=Install /FEATURES=SQL /INSTANCENAME=MSSQLEXPRESS /ADDCURRENTUSERASSQLADMIN /ENABLERANU=1 /SECURITYMODE=SQL /SAPWD="password" /IACCEPTSQLSERVERLICENSETERMS /SUPPRESSPRIVACYSTATEMENTNOTICE /IACCEPTPYTHONLICENSETERMS /IACCEPTROPENLICENSETERMS
After running that command, the MSSQL Server instance MSSQLEXPRESS is not installed. I checked it with SSMS.
Does anybody know why?
2
You may need to set the SQL Server service to start automatically by adding the parameter /SQLSVCSTARTUPTYPE Automatic
to make sure the service actually runs once the installation completes.
(Source)