Chocolatey: Пример создания пакета .nupkg

На примере bareos-client.

Описание программы и общие сведения в файле bareos-client.nuspec:

<?xml version="1.0" encoding="utf-8"?>
<!-- Do not remove this test for UTF-8: if ??? doesn?t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns="">
	<!-- Read this before publishing packages to -->
	<authors>Bareos GmbH and Co.KG</authors>
	<owners>Slava Makarov</owners>
	<description>Bareos is a 100% open source fork of the backup project from 
	The fork is in development since late 2010, it has a lot of new features. 
	The source has been published on github, licensed AGPLv3.</description>
	<tags>bareos winbareos admin backup windows</tags>
	<copyright>© Copyright Bareos GmbH and Co. KG. Bareos is a registered Trademark of Bareos GmbH and Co. KG.</copyright>
	<!-- Important note about Files are cached permanently after the first request. Use commit URLs when updating the icon. -->
	  <dependency id="" version="" />
	<releaseNotes>32bit, 64bit.</releaseNotes>
	<file src="tools\**" target="tools" />
Описание процесса установки chocolateyInstall.ps1:

$packageName = 'bareos-client'
$installerType = 'exe'
$url = ''
$url64 = ''
$silentArgs = '/S'
$validExitCodes = @(0)
$checksum      = '3CA9FE7BC67DC042F9F97AB448F05A733502833BFCADE3B26CCEF900545E7FAF'
$checksumType  = 'sha256'
$checksum64    = 'D2880A6110C7A1A42AED7BB97F0BCB176F58427223EFF1C305A183382CFC1055'
$checksumType64= 'sha256'

Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url" "$url64" "$checksum" "$checksumType" "$checksum64" "$checksumType64"  -validExitCodes $validExitCodes
Если надо получить md5 хеш (PowerShell):
Get-FileHash -Path '.\winbareos.msi' -Algorithm SHA256
Пакуем в .nupkg:
cpack -y
Пробная установка из локального пакета:
cinst -fvy .\bareos-client.19.2.7.nupkg
Если всё ок, пушим в репозиторий:
choco push .\bareos-client.19.2.7.nupkg --source