chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.4k stars 904 forks source link

Allow adjusting Read-Host default timeout #757

Open ferventcoder opened 8 years ago

ferventcoder commented 8 years ago

The timeout for user input in PowerShell scripts is 30 seconds. Allow script writers to adjust that timeout.

Workaround

--use-system-powershell to have no timeout (will be a blocking operation).

Skolzack commented 7 years ago

How we can adjust/remove the timeout of Read-host?

ferventcoder commented 7 years ago

@Skolzack you can't currently. That's why this enhancement ticket exists.

Skolzack commented 7 years ago

Okay, thx.

ferventcoder commented 7 years ago

Actually, one option does exist --use-system-powershell

robsiera commented 2 years ago

But that option cannot be used with BoxStarter. Meaning that Read-Host cannot be used without time-out with scripts invoked with BoxStarter. Or am I missing something?

pauby commented 2 years ago

@robsiera That would be a Boxstarter issue.