Skip to content

Add installBehavior.disableLicenseDisclaimer setting - #6600

Open
Alberto (a-lberto) wants to merge 1 commit into
microsoft:masterfrom
a-lberto:disable-license-disclaimer
Open

Alberto (a-lberto) wants to merge 1 commit into
microsoft:masterfrom
a-lberto:disable-license-disclaimer

Conversation

@a-lberto

@a-lberto Alberto (a-lberto) commented Oct 18, 2026 •

Copy link
Copy Markdown

📖 Description

Adds installBehavior.disableLicenseDisclaimer (boolean, default false).
When true, ShowInstallationDisclaimer skips the two license lines (InstallationDisclaimer{1,2}).

It follows the existing installBehavior.disableInstallNotes setting: enum entry, setting mapping, pass-through validator, schema property and a section in Settings.md.

  • Default behavior is unchanged.
  • Setting only; no command-line argument.
  • The Microsoft Store notice (InstallationDisclaimerMSStore) is a different message and is still shown.
  • The winget configure disclaimer is unrelated and untouched.

🔗 References

Resolves #6598

Related: #288, #3891, #6419

🔍 Validation

Tests added:

  • SettingsDisableLicenseDisclaimer in AppInstallerCLITests/UserSettings.cpp (default and enabled)
  • InstallFlow_LicenseDisclaimer in AppInstallerCLITests/InstallFlow.cpp, run with the setting both
    off and on: the install succeeds either way and the disclaimer is shown only when the setting is off

Ran

AppInstallerCLITests.exe "*LicenseDisclaimer"
All tests passed (9 assertions in 2 test cases)

InstallFlow_LicenseDisclaimer runs with the setting both off and on.

Used Claude chat for exploration of solution.

✅ Checklist

🤖 AI Assistance

  • AI assistance was used and has been disclosed in this PR
  • No AI assistance was used

📋 Issue Type

  • Bug fix
  • Feature
  • Task
Microsoft Reviewers: Open in CodeFlow

Adds a boolean setting, modeled on disableInstallNotes, that hides the license disclaimer shown before a package is installed. Defaults to false, so behavior is unchanged unless enabled. Related: microsoft#6598.
@a-lberto
Alberto (a-lberto) requested a review from a team as a code owner October 18, 2026 20:42
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@a-lberto

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an installBehavior.disableLicenseDisclaimer setting to hide the install license disclaimer

1 participant