Skip to content

Setup argument limits: named instances, update search, localised Windows and OS detection #329

Open

Description

@dhensby

install-arguments can't change the defaults. The action always passes /INSTANCENAME=MSSQLSERVER and /FEATURES=SQLEngine, and appends install-arguments after them without removing duplicates (src/install.ts#L150-L167, see the @todo). The action also uses MSSQLSERVER for the instance-name output, the readiness check (-S (local)) and the error log lookup. A named instance or a different feature list therefore doesn't work correctly. I haven't checked whether setup rejects a duplicate switch or uses the last one.

install-updates: false doesn't turn updates off. The action passes /UPDATEENABLED=1 and /UpdateSource only when it has a CU, downloaded or found in the tool cache (src/install.ts#L132-L149). Otherwise it passes neither. For SQL Server 2012 and later, Microsoft documents UpdateEnabled as true by default, with Microsoft Update as the default source, so setup can still search for updates online. The README says that after a failed CU download the action "installs SQL Server without updates" (README.md#L67-L76). Passing /UPDATEENABLED=0 would change what users get today, so this needs a decision.

BUILTIN\ADMINISTRATORS is the English group name. /SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS" (src/install.ts#L159) depends on the English name. Windows localises the names of built-in groups, so setup may not find the group on Windows in another display language. I haven't tested this.

OS detection. getOsVersion() takes the first number in the OS caption (src/utils.ts#L30). On client Windows that number is 10 or 11, so the max: 2019 check for 2008–2014 passes on windows-11-arm. Nothing checks the architecture before the SQL Server download, so the action then downloads x64 media on an arm64 runner. The JSDoc also still says the version comes from systeminfo.

Suggested fix:

  • Let install-arguments replace a default switch with the same name, and take the instance name from the final arguments.
  • Decide whether to pass /UPDATEENABLED=0 when no CU is used (not for 2008, whose setup predates the setting), and make the README match.
  • Look up the local name of the Administrators group (SID S-1-5-32-544) at run time instead of using the English name.
  • Map client Windows versions to a comparable server version, or compare build numbers, and fail early on arm64.

Activity

  1. added
    enhancement
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions