Per the package page, installing with the /NoExtensionPack flag should omit the non-free Extension Pack.
Extension pack was installed.
Not sure exactly what's going wrong here. My "in a perfect world" solution to this would be to have an alternate/virtual package that only installs the FOSS base package for VirtualBox and completely omits the additional licensed Extension Pack.
Alternately, maybe make the default install FOSS only and have non-free software opt-in with a /WithExtensionPack flag.
cinst virtualbox /NoExtensionPack -y
This issue is particularly problematic for me since I'm using this in a corporate environment. Having the non-free extension pack unexpectedly installed has licensing implications.
The command is not OK:
should be
cinst virtualbox --params /NoExtensionPack
Could a sentence be added to the description to make it more clear that you also need --params?
No, because people should know how basic chocolatey works.
It's under the 'advanced install concepts' section in the getting started guide (and even there it's behind a link) - I don't think something can be basic and advanced at the same time.
Its actually among basic cinst examples here.
I'ts also shown as an example when you run cinst --help.
Dang, I was hoping it wasn't something dumb. I do want to point out while you guys are obviously familiar with usage minutiae, I have been using choco at a basic level (cinst/cuninst) for years and never had a need to specify params until I realized you're including a non-free extension in this package by default.
Looking at the params section on the package page, gives no indication that --params exists or is necessary. And choco --help has a section about passing / Switches, which I misunderstood as being inclusive of /Parameters functionality.
I still want to encourage you guys to consider not including the optional non-free extension by default, but either way thanks for the clarification.