Skip to content

Commit

Permalink
Add setting to suppress quick update warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Trenly committed Sep 21, 2021
1 parent 6aa9fc0 commit 49b86c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tools/YamlCreate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,7 @@ switch ($Keys[$keyInfo.Key]) {
}

# Confirm the user undertands the implications of using the quick update mode
if ($script:Option -eq 'QuickUpdateVersion') {
if (($script:Option -eq 'QuickUpdateVersion') -and ($ScriptSettings.SuppressQuickUpdateWarning -ne 'true')) {
$_menu = @{
entries = @('[Y] Continue with Quick Update'; '[N] Use Full Update Experience'; '*[Q] Exit Script')
Prompt = 'Quick Updates only allow for changes to the existing Installer URLs, Sha256 Values, and Product Codes. Are you sure you want to continue?'
Expand Down
5 changes: 4 additions & 1 deletion doc/tools/YamlCreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ DefaultInstallerLocale: en-US
# manual - Never downloads any files. All InstallerSha256 values must be entered manually
SaveToTemporaryFolder: false


# This setting allows you to set a default value for whether or not you have signed the Microsoft CLA
# If this value is set to true, all automatic PR's will be marked as having the CLA signed
SignedCLA: false

# This setting allows you to skip the prompt to confirm you want to use quick update mode
# If this value is set to true, the Quick Update Warning will be skipped
SuppressQuickUpdateWarning: false
```

0 comments on commit 49b86c4

Please sign in to comment.