You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For exit on reboot detected, it's actually best to have it on as it
makes things more reliable for installations. Remove the note that
mentions otherwise.
config.Features.IgnoreInvalidOptionsSwitches=set_feature_flag(ApplicationParameters.Features.IgnoreInvalidOptionsSwitches,configFileSettings,defaultEnabled:true,description:"Ignore Invalid Options/Switches - If a switch or option is passed that is not recognized, should choco fail? Available in 0.9.10+.");
294
294
config.Features.UsePackageExitCodes=set_feature_flag(ApplicationParameters.Features.UsePackageExitCodes,configFileSettings,defaultEnabled:true,description:"Use Package Exit Codes - Package scripts can provide exit codes. With this on, package exit codes will be what choco uses for exit when non-zero (this value can come from a dependency package). Chocolatey defines valid exit codes as 0, 1605, 1614, 1641, 3010. With this feature off, choco will exit with 0, 1, or -1 (matching previous behavior). Available in 0.9.10+.");
295
295
config.Features.UseEnhancedExitCodes=set_feature_flag(ApplicationParameters.Features.UseEnhancedExitCodes,configFileSettings,defaultEnabled:true,description:"Use Enhanced Exit Codes - Chocolatey is able to provide enhanced exit codes surrounding list, search, info, outdated and other commands that don't deal directly with package operations. To see enhanced exit codes and their meanings, please run `choco [cmdname] -?`. With this feature off, choco will exit with 0, 1, or -1 (matching previous behavior). Available in 0.10.12+.");
296
+
config.Features.ExitOnRebootDetected=set_feature_flag(ApplicationParameters.Features.ExitOnRebootDetected,configFileSettings,defaultEnabled:false,description:"Exit On Reboot Detected - Stop running install, upgrade, or uninstall when a reboot request is detected. Requires '{0}' feature to be turned on. Will exit with either {1} or {2}. When it exits with {1}, it means pending reboot discovered prior to running operation. When it exits with {2}, it means some work completed prior to reboot request being detected. Available in 0.10.12+.".format_with(ApplicationParameters.Features.ExitOnRebootDetected,ApplicationParameters.ExitCodes.ErrorFailNoActionReboot,ApplicationParameters.ExitCodes.ErrorInstallSuspend));
296
297
config.Features.UseFipsCompliantChecksums=set_feature_flag(ApplicationParameters.Features.UseFipsCompliantChecksums,configFileSettings,defaultEnabled:false,description:"Use FIPS Compliant Checksums - Ensure checksumming done by choco uses FIPS compliant algorithms. Not recommended unless required by FIPS Mode. Enabling on an existing installation could have unintended consequences related to upgrades/uninstalls. Available in 0.9.10+.");
297
298
config.Features.ShowNonElevatedWarnings=set_feature_flag(ApplicationParameters.Features.ShowNonElevatedWarnings,configFileSettings,defaultEnabled:true,description:"Show Non-Elevated Warnings - Display non-elevated warnings. Available in 0.10.4+.");
298
299
config.Features.ShowDownloadProgress=set_feature_flag(ApplicationParameters.Features.ShowDownloadProgress,configFileSettings,defaultEnabled:true,description:"Show Download Progress - Show download progress percentages in the CLI. Available in 0.10.4+.");
config.Features.LogValidationResultsOnWarnings=set_feature_flag(ApplicationParameters.Features.LogValidationResultsOnWarnings,configFileSettings,defaultEnabled:true,description:"Log validation results on warnings - Should the validation results be logged if there are warnings? Available in 0.10.12+.");
306
307
config.Features.ScriptsCheckLastExitCode=set_feature_flag(ApplicationParameters.Features.ScriptsCheckLastExitCode,configFileSettings,defaultEnabled:false,description:"Scripts Check $LastExitCode (external commands) - Leave this off unless you absolutely need it while you fix your package scripts to use `throw 'error message'` or `Set-PowerShellExitCode #` instead of `exit #`. This behavior started in 0.9.10 and produced hard to find bugs. If the last external process exits successfully but with an exit code of not zero, this could cause hard to detect package failures. Available in 0.10.3+. Will be removed in 0.11.0.");
307
308
config.PromptForConfirmation=!set_feature_flag(ApplicationParameters.Features.AllowGlobalConfirmation,configFileSettings,defaultEnabled:false,description:"Prompt for confirmation in scripts or bypass.");
308
-
config.Features.ExitOnRebootDetected=set_feature_flag(ApplicationParameters.Features.ExitOnRebootDetected,configFileSettings,defaultEnabled:false,description:"Exit On Reboot Detected - Stop running install, upgrade, or uninstall when a reboot request is detected. Requires '{0}' feature to be turned on. Will exit with either {1} or {2}. When it exits with {1}, it means pending reboot discovered prior to running operation. When it exits with {2}, it means some work completed prior to reboot request being detected. As this will affect upgrade all, it is normally recommended to leave this off. Available in 0.10.12+.".format_with(ApplicationParameters.Features.ExitOnRebootDetected,ApplicationParameters.ExitCodes.ErrorFailNoActionReboot,ApplicationParameters.ExitCodes.ErrorInstallSuspend));
0 commit comments