From 2753ce0ad6de219f6b679a2d3de8306eff8d3d5a Mon Sep 17 00:00:00 2001 From: Jakub Cislo Date: Mon, 19 Dec 2016 23:02:03 +0100 Subject: [PATCH] (GH-1053) Update note about global confirmation This commit introduces easy to copy full command to enable allowGlobalConfirmation which is printed during installation of package. --- .../infrastructure.app/services/PowershellService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chocolatey/infrastructure.app/services/PowershellService.cs b/src/chocolatey/infrastructure.app/services/PowershellService.cs index ba9c0a0d3d..649a75632a 100644 --- a/src/chocolatey/infrastructure.app/services/PowershellService.cs +++ b/src/chocolatey/infrastructure.app/services/PowershellService.cs @@ -206,8 +206,8 @@ public bool run_action(ChocolateyConfiguration configuration, PackageResult pack { this.Log().Info(ChocolateyLoggers.Important, () => "The package {0} wants to run '{1}'.".format_with(package.Id, _fileSystem.get_file_name(chocoPowerShellScript))); this.Log().Info(ChocolateyLoggers.Important, () => "Note: If you don't run this script, the installation will fail."); - this.Log().Info(ChocolateyLoggers.Important, () => @"Note: To confirm automatically next time, use '-y' or consider setting - 'allowGlobalConfirmation'. Run 'choco feature -h' for more details."); + this.Log().Info(ChocolateyLoggers.Important, () => @"Note: To confirm automatically next time, use '-y' or consider:"); + this.Log().Info(ChocolateyLoggers.Important, () => @"choco feature enable -n allowGlobalConfirmation"); var selection = InteractivePrompt.prompt_for_confirmation(@"Do you want to run the script?", new[] { "yes", "no", "print" },