Skip to content

Allow MSI installer scripts to identify if they are running unattended #2781

@freakboy3742

Description

@freakboy3742

What is the problem or limitation you are having?

MSI installers can be executed in "unattended" or "quiet" mode, which means the user won't be present to interact with the installer (the equivalent of a --noinput run for Briefcase).

If an MSI has a post-install script, the script needs to know if the installer is running in unattended mode so that the script can avoid presenting questions to the user and assume appropriate defaults.

Describe the solution you'd like

Post-install and pre-uninstall scripts should have access to a INSTALLER_UNATTENDED environment variable that is set to 1 if the MSI is running "quiet" mode.

Describe alternatives you've considered

Additional context

A "Quiet mode" install can be triggered with:

msiexec /i MyInstaller.msi /qn

Initial research suggests that <Condition>UILevel &lt; 3</Condition> can be used to identify "quiet mode" in the installer as part of a conditional property definition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features, or improvements to existing features.windowsThe issue relates to Microsoft Windows support.
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions