diff --git a/RELEASE.md b/RELEASE.md index 0b21f2ed4..b8c2c6ca2 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -130,6 +130,21 @@ Example for CentOS7: Create a new release for the newly created Git tag. https://github.com/Icinga/icinga2/releases +## Chocolatey + +Navigate to the git repository on your Windows box which +already has chocolatey installed. Pull/checkout the release. + +Create the nupkg package: + + cpack + +Install the created icinga2 package locally: + + choco install icinga2 -version 2.4.7 -fdv "%cd%" -source "'%cd%;https://chocolatey.org/api/v2/'" + +Upload the package to [chocolatey](https://chocolatey.org/packages/upload). + ## Online Documentation SSH into the web box, navigate into `icinga2-latest/module/icinga2` diff --git a/tools/chocolateyInstall.ps1 b/tools/chocolateyInstall.ps1 index ad5a282ca..b31c84f24 100755 --- a/tools/chocolateyInstall.ps1 +++ b/tools/chocolateyInstall.ps1 @@ -2,7 +2,7 @@ $installerType = 'msi' $url32 = 'http://packages.icinga.org/windows/Icinga2-v2.4.7-x86.msi' $url64 = 'http://packages.icinga.org/windows/Icinga2-v2.4.7-x86_64.msi' -$silentArgs = '/silent' +$silentArgs = '/qn /norestart' $validExitCodes = @(0) Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url32" "$url64" -validExitCodes $validExitCodes