Share via

sql 2022 EXPRESS SDCO Error

aa 0 Reputation points
2026-04-27T17:11:44.5566667+00:00

Hello. i am having issue with installing SQL express 2022.

basically i have a program that i am installing, but in the pre-req for that program i have to install sql 2022. while installing i get setup bootstrap error and in logfiles i see this

Configuration file: C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20260421_145857\ConfigurationFile.ini

Detailed results:

Feature: Database Engine Services

Status: Failed

Reason for failure: An error occurred during the setup process of the feature.

Next Step: Use the following information to resolve the error, and then try the setup process again.

Component name: SQL Server Database Engine Services Instance Features

Component error code: 1639

Component log file: C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20260421_145857\sql_engine_core_inst_Cpu64_1.log

Error description: Invalid command line argument. Consult the Windows Installer SDK for detailed command line help.

Error help link: https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=16.0.1000.6&EvtType=sql_engine_core_inst.msi%400x162A16FE%400x1639

i have fully removed SQL from computer many times even from registry, removed the sql folders and tried to install it again and same issue. any idea what would be causing this error

SQL Server | Other

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-04-27T17:11:58.5866667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Error code 1639 with message “Invalid command line argument” indicates that SQL Server setup is being started with at least one unsupported or malformed parameter.

    For SQL Server 2022 Express, the Database Engine component accepts a defined set of command-line parameters such as:

    • /INSTANCENAME (required for normal installs, optional for SysPrep)
    • /INSTANCEID (optional)
    • /PID (optional; predefined for Express)
    • /PRODUCTCOVEREDBYSA (required only when installing the Azure Extension feature with AZUREEXTENSION)
    • /Q or /QUIET / /QS or /QUIETSIMPLE (UI behavior)
    • Directory parameters like /INSTALLSHAREDDIR, /INSTALLSHAREDWOWDIR, /INSTANCEDIR

    Any parameter outside what setup expects for the chosen scenario, or a valid parameter with an invalid value or syntax, will cause MSI error 1639 and the “Invalid command line argument” message.

    Since the installation is being launched as a prerequisite from another program, that program is most likely constructing and calling setup.exe with an incorrect or outdated parameter set (for example, using parameters that changed between SQL versions, or passing /PRODUCTCOVEREDBYSA incorrectly, or omitting a required /INSTANCENAME in a non-default scenario).

    To resolve:

    1. Open the detailed component log referenced in the summary:
      • C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20260421_145857\sql_engine_core_inst_Cpu64_1.log
      • Search for the full msiexec or setup.exe command line; it will show the exact parameters being passed.
    2. Compare those parameters against the supported installation parameters for SQL Server 2022 setup from the command prompt and remove or correct any invalid ones (wrong names, typos, unsupported values, or parameters that only apply to other scenarios like failover clusters or Azure Extension).
    3. If the prerequisite installer is hard-coded and cannot be edited, bypass it by:
      • Installing SQL Server 2022 Express manually with a valid command line (or via the standard setup UI) using only supported parameters.
      • Then rerun the main program installer so it detects the already-installed SQL instance.

    If the failure persists after cleaning up and reinstalling, focus on correcting the command line rather than further registry/file cleanup, since error 1639 is specifically about invalid setup arguments, not leftover components.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.