Repository navigation
Add installBehavior.disableLicenseDisclaimer setting - #6600
Alberto (a-lberto) wants to merge 2 commits into
Conversation
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.
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
@microsoft-github-policy-service agree |
Kaleb Luedtke (Trenly)
left a comment
There was a problem hiding this comment.
I don't mean to add scope to this PR, but since it touches a disclaimer, Demitrius Nelon (@denelon) may want a Group Policy setting that an enterprise could set to force the disclaimer to be shown
…inistrators require that the license disclaimer is always shown, overriding the `installBehavior.disableLicenseDisclaimer` user setting.
|
Thanks Kaleb Luedtke (@Trenly)! This is my first PR here, so please tell me if I've missed a convention. I gave a stab at the Group Policy suggestion, and hopefully this solves what you believe Demitrius Nelon (@denelon) would have required. Toggle policy Tests:
I ran: Open points:
|
|
I don't really understand the need for this, but that isn't really a problem for the small scope it would have. I don't agree with having a GP for it though. If we need the disclaimer to be shown badly enough to need the GP, we should just not have the setting at all. But that is all my non-lawyerly opinion. Overall this seems like an Demitrius Nelon (@denelon) question, but he is also quite busy these days. |
📖 Description
Adds
installBehavior.disableLicenseDisclaimer(boolean, defaultfalse).When
true,ShowInstallationDisclaimerskips the two license lines (InstallationDisclaimer{1,2}).It follows the existing
installBehavior.disableInstallNotessetting: enum entry, setting mapping, pass-through validator, schema property and a section inSettings.md.InstallationDisclaimerMSStore) is a different message and is still shown.winget configuredisclaimer is unrelated and untouched.🔗 References
Resolves #6598
Related: #288, #3891, #6419
🔍 Validation
Tests added:
SettingsDisableLicenseDisclaimerinAppInstallerCLITests/UserSettings.cpp(default and enabled)InstallFlow_LicenseDisclaimerinAppInstallerCLITests/InstallFlow.cpp, run with the setting bothoff and on: the install succeeds either way and the disclaimer is shown only when the setting is off
Ran
InstallFlow_LicenseDisclaimer runs with the setting both off and on.
Used Claude chat for exploration of solution.
✅ Checklist
doc/Settings.mdand the settings JSON schema🤖 AI Assistance
📋 Issue Type
Microsoft Reviewers: Open in CodeFlow