Allow parameters to be passed for uninstall (required by some packages) (#2269)

This commit is contained in:
Tim Small 2016-06-20 22:30:10 +01:00 committed by Adrian Likins
parent 81c7630c01
commit 713aaa1d4a

View file

@ -288,6 +288,11 @@ Function Choco-Uninstall
$cmd += " -force"
}
if ($packageparams)
{
$cmd += " -params '$packageparams'"
}
$results = invoke-expression $cmd
if ($LastExitCode -notin $successexitcodes)