Installation

Fresh Install

If you do not already have any previous cChocoEx versions installed installation is as simple as the below commands

Install-Module cChocoEx

Update Existing Install

Update-Module cChocoEx

Manual Install

NuGet Package Provider Setup

You will find out pretty quickly that one of the prerequisites to install PowerShell modules is the NuGet PackageProvider dll. If attempting to to install a module and its not present you will be prompted to automatically install from Microsoft's public endpoint azureedge.net. You can easily force this install with the below command so you are not prompted at runtime.

Find-PackageProvider -Name 'Nuget' -ForceBootstrap -IncludeDependencies

Offline Nuget Package Provider Install

Pulling from the public internet may not be possible in all situations. Matt Corr wrote a great article describing how to "manually" deploy the dll if for some reason you are not able to access it from its normal public source. My example bootstrap.ps1 also shows how this could be implemented,

Putting it all together

Last updated

Was this helpful?