How to install SQL Server 2017 Express in "Quiet Simple" mode without an extraction folder? I need to install SQL Server 2017 Express with as little user interaction as possible. I am using the SQLEXPR_x64_ENU.exe setup file that I found a Microsoft download for. The installer I am currently using is the 2017 CORE one linked to from here (I have no idea how people find official Microsoft downloads for anything!)

Currently I can do exactly what I want with 2012 by using the following parameters:

/FEATURES="SQL, Tools" /QS /IACCEPTSQLSERVERLICENSETERMS /ADDCURRENTUSERASSQLADMIN=1 /ACTION="Install" /ERRORREPORTING=0 /INSTANCENAME="MyDB"


In 2012 this works great, however I am trying to now do the same in 2017. The problem I have is that it creates an extraction folder called "SQLEXPR_x64_ENU" in the same directory as the install. This is not desirable.

Question: Is there anyway to prevent this extraction folder from being used, so that it functions that same as the 2012 setup?

Alternatively, one of the following solutions would be acceptable:


Allow the user to select the extraction location - like it does with default install (non-quiet) - but still ensure /QS mode for the rest of the setup
Have the extraction folder automatically deleted after setup (it wouldn't be so bad if it cleaned up it's mess after it was finished)
Why not create a PowerShell script to start the install. After the install is finished:


verify success (possibly with the return code or parsing the output log)
verify the existence of the extraction folder
if there are no errors delete the extraction folder