Skip to content

Invoke-Chocolatey does not wait for result of choco.exe #597

@mwallner

Description

@mwallner

In certain scenarios, the boxstarter.extension get's "lost" during a package install with multiple choco commands, such as

choco install pkg1
choco install pkg2
choco install pkg3

without the extension being present, the process will stall because the confirmation option (-y) is not being added to the choco command.

This is most likely due to a bug in Invoke-Chocolatey

$p = Start-Process @pargs

Wait-Process -Id $p.id

will not work as expected when the started process exits quickly (even if the workload has been dispatched to a still running child-process)

Metadata

Metadata

Assignees

Labels

2 - WorkingA user or team member has started working on the issue.BugIssues where something has happened which was not expected or intended.

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions