chocolatey / cChoco

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

Upgrading Packages with DSC #42

Closed priceflex closed 8 years ago

priceflex commented 8 years ago

I have used the command: cup before to update the packages and it works great for public hosted packages. We currently have a bunch of locally maintained packages and I wanted to know if there was a way to have DSC update the local and public packages automatically.

priceflex commented 8 years ago

Or Is there a way to just add the version number to the configuration?

DamianBis commented 8 years ago

Can do it like this

  cChocoPackageInstaller installAtomSpecificVersion
  {
    Name = "atom"
    Version = "0.155.0"
    DependsOn = "[cChocoInstaller]installChoco"
  }

39 is open to allow "Latest" as a version number. this should be available in the next couple of weeks.

priceflex commented 8 years ago

Thank you I will try that.