Error when attempting to load chocolatey licensed assembly. Ensure that chocolatey.licensed.dll exists at ‘C:\ProgramData\chocolatey\extensions\chocolatey\chocolatey.licensed.dll’. Install with `choco install chocolatey.extension`. The error message itself may be helpful as well: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

To access Chocolatey packages in your private network you need to download them from the Internet and store them at a location where all servers can access them. You can internalize Chocolatey packages if you have a Chocolatey Business subscription.

You can use an Artifactory server to host the internalized packages.

List of available packages

To get the list of the available Chocolatey packages on an Artifactory server

Copyrighted applications

If the Chocolatey package installs an application that is copyrighted, the author of the package cannot publish the copyrighted source, but can place the download location and installation process into the package.

Internalize the package

To download the necessary files and create a custom Chocolatey package with copyrighted application source:

Download the Chocolatey package without the internalize option

choco download PACKAGE_NAME

Example:

choco download javaruntime

Delete the small .nupkg files. These are too small to contain the installer files. We will recreate them in a subfolder with the downloaded installer files.

Find the package folder in the download sub-folder that has a tools subfolder. In the case of “javaruntime”, the real package is the “jre8”, not “javaruntime”.

Open the tools\chocolateyInstall.ps1 file

Find thedownload urls of the installer files. Some scripts contain variables for theversion of the application, so you have to manually assemble the final download URL.