Skip to content

Expected return codes #1278

Closed
Closed

Description

Description of the new feature/enhancement

Some .exe installers provide return error codes for known reasons on install. These aren't exactly the same as "SuccessCodes" because the install didn't complete, but they aren't necessarily catastrophic failures either.

We would like to be able to have standard known error messages that can be easily understood and localized for these installers.

Proposed technical implementation details (optional)

The Windows Package Manager would have an enumeration of responses to be localized for mapping to specific return codes from installers.

For example some packages return error codes indicating the program is in use and should be exited before install.

OBS Studio returns "5" when the package is already running.

Installers:
  - InstallerType: exe
    InstallerArchitecture: x64
    InstallerSHA256: 12341234123412341234123412341234123412341234
    InstallerURL: https://www.contoso.com/awesomeapp/1.0.0/awesomeapp.x64.exe
    EpectedReturnCodes:
      - InstallerReturnCode: 5
        ReturnResponse: PACKAGE_IN_USE

Activity

  1. added
    Issue-Feature
    Area-Manifest
    on Jul 13, 2021
  2. ghost added
    Needs-Triage
    on Jul 13, 2021
  3. added this to the milestone on Jul 14, 2021
  4. denelon commented on Oct 1, 2021

    @denelon
    CollaboratorAuthor

    This will not be supported fully until the validation pipelines accept the 1.1 schema.

    "ExpectedReturnCodes": {
    "type": [ "array", "null" ],
    "items": {
    "type": "object",
    "properties": {
    "InstallerReturnCode": {
    "$ref": "#/definitions/InstallerReturnCode"
    },
    "ReturnResponse": {
    "type": "string",
    "enum": [
    "packageInUse",
    "installInProgress",
    "fileInUse",
    "missingDependency",
    "diskFull",
    "insufficientMemory",
    "noNetwork",
    "contactSupport",
    "rebootRequiredToFinish",
    "rebootRequiredForInstall",
    "rebootInitiated",
    "cancelledByUser",
    "alreadyInstalled",
    "downgrade",
    "blockedByPolicy"
    ]
    }
    }
    },
    "maxItems": 128,
    "description": "Installer exit codes for common errors"
    },

  5. modified the milestones: , v1.2-Client on Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-ManifestIssue-Feature

Type

No type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions