Zuehlke / cookbook-windev

One cookbook with resources for setting up a Windows development environment
MIT License
7 stars 1 forks source link

Fix handling of params for choco packages #49

Closed Bueddl closed 1 year ago

Bueddl commented 1 year ago

This PR fixes the handling of additional "params" that can be passed when installing choco-packages.

Apparently the handling of the choco command changed and parameters are now passed as an array which results in exec args like this for example:

["C:\ProgramData\chocolatey/bin/choco.exe", "install", "-y", " --parameters /Password:postgres", "postgresql12"]

Note the leading space befor the two dashes for the parameters argument and that the value for the argument is passed in the same argv entry.

Bueddl commented 1 year ago

Ping @damphyr