Choco: Ask user for allowGlobalConfirmation setting on first time setup.

Created on 28 Jun 2016  路  7Comments  路  Source: chocolatey/choco

Currently you need to open the chocolatey configuration text file and set the allowGlobalConfirmation to TRUE whenever you install new chocolatey.

There need to be a prompt when you install chocolatey for the first time: ask if the user wants a global confirmation to be enabled or not.

Basically this is how I see it:

  • User that doesn't want global confirmation will be fine with one extra confirmation.
  • User that wants global confirmation on will only be asked for confirmation ONCE and be done with it.
0 - _Triaging

Most helpful comment

In regard to this issue's precise title, I would love to have a prompt an first setup if the user wants to activate allowGlobalConfirmation right now. I always forget when I set up chocolatey on a new system/virtual machine. This is about ease of use since new users will not be aware of this switch and could learn and decide on it while installing chocolatey.
Thank you all for your time!

All 7 comments

Currently you need to open the chocolatey configuration text file and set the allowGlobalConfirmation to TRUE whenever you install new chocolatey.

I'm slightly confused. You should almost never need to open up the configuration file.

The command help text even mentions it - choco feature enable -n allowGlobalConfirmation.

Since this is a pretty simple command to run, or to use -y as part of commands, I'm not sure this is something we will want to do.

Maybe I misworded it or my intentions weren't clear.

I think this is about ease of use aspect of the application. For example, at the end of many application setups, there is often a checkbox: "Change file associations to this program."

It's easier for a user to (un)check that box while they care and forget about it rather than later needing to go to the application setting then change it. (Something like choco feature enable -n allowGlobalConfirmation)

The user can forget to invoke -y flag. It's akin to a Windows "Open With" command in Explorer. If you haven't changed the file association and forgot to use Open With, it will not run the way you wanted it to run (-y) but instead uses other program.

I hope this example makes my point clearer.

I think I am starting to understand what you are asking... You want a prompt where you use the mouse and click on a box at the end of the install of the Choco CLI. Is that correct?

No need for a mouse!

Simply Y (yes) or N (no) prompt in the command line is fine, I think. (Since you install using command line anyway).

How do you see this prompt working when there is no person on the other side of the installs?

I'm not aware of automated install scenario because I usually install choco via CMD / PS command line manually using instructions found on https://chocolatey.org/install.

So I assume there must be a user. I could be wrong tho. :sweat_smile:

In regard to this issue's precise title, I would love to have a prompt an first setup if the user wants to activate allowGlobalConfirmation right now. I always forget when I set up chocolatey on a new system/virtual machine. This is about ease of use since new users will not be aware of this switch and could learn and decide on it while installing chocolatey.
Thank you all for your time!

Was this page helpful?
0 / 5 - 0 ratings