How to bypass Chocolatey install confirmation? [duplicate]
Asked Answered
M

1

10

When I want to install packages like vagrant with chocolatey, I get the message:

The package vagrant wants to run 'chocolateyInstall.ps1'. Note: If you don't run this script, the installation will fail. Do you want to run the script?

Is there a way to overleap this question or something like a silent-mode?

One command for example in PowerShell:

choco install vagrant

Thanks in advance.

Moller answered 12/5, 2015 at 18:4 Comment(2)
Does adding -confirm:$false to the command line do anything for you?Troostite
I don't think that it is a duplicate question, but the answer (Parameter "- y") is identic. Thanks for your hint.Moller
F
17

This is really a duplicate of this question:

How do I update all Chocolatey apps without confirmation?

Yes, totally possible, use:

choco install vagrant -y

See also choco install -h for more information.

Fauna answered 13/5, 2015 at 6:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.