chocolatey / cChoco

Community resource to manage Chocolatey
Apache License 2.0
154 stars 99 forks source link

Add ability to install multiple package versions #140

Closed wizarden1 closed 3 years ago

wizarden1 commented 4 years ago

I rewrite cChocoPackageInstall and now it can be used for install multiple version of app. It use '-m' switch for it Pros:

If this interesting, i will put code here

pauby commented 4 years ago

If the upgrade process does not work then that breaks functionality of the resource.

wizarden1 commented 4 years ago

cChocoPackageInstall.zip No, I mean if you set multiple versions, module use functions UninstallPackage, InstallPackage and not Upgrade-Package

wizarden1 commented 4 years ago

full module, ignore zip extension it's nuget package cchoco.2.4.1.nupkg.zip And 2.4.1 it's not based on you 2.4.1. When I write it, 2.4.1 hasn't been exist, it based on 2.4.0 from powershell gallery

pauby commented 4 years ago

Submit a PR and I can look at the changes.

pauby commented 4 years ago

PR #143 submitted.

pauby commented 4 years ago

@wizarden1 I was never keen on multiple installs (experience) but this comment in the Choco repository has me thinking about this again. What I don't want to happen is for us to cause more issues than it solves.

Maybe a HUGE caveat around it? Thoughts?

wizarden1 commented 4 years ago

You are right, this function is two side sword. From one perspective it'll allow to install multiple version of software that support this function. From other side this function will do strange thing with software that not support multiple versions on one OS. And the main question is, how choco per se work with "-m" parameter. As I see this function give some pros and con. Pros

Con

May be put some warning about application that can't be used with multiple versions. And use it for your own risk.

But if the person is an idiot none of restriction measurements can help.

Basically multi version just use choco with "-m" parameter and it depends of what choco will do.

What of HUGE caveat around it you see? And I seen many request about this function from community.

pauby commented 3 years ago

PR #143 was closed due to being stale.