Kopano ADS nightly initial

This commit is contained in:
Peter V. Beck 2017-08-02 15:10:42 +02:00
parent 1798af8267
commit 96e0c6b1e4
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>kopano-ads-nightly</id>
<version>1.0.71</version>
<title>Kopano ADS</title>
<authors>Kopano</authors>
<owners>foo.li systeme + software</owners>
<licenseUrl>https://www.gnu.org/licenses/</licenseUrl>
<projectUrl>https://download.kopano.io/community/adextension:/</projectUrl>
<iconUrl>https://raw.githubusercontent.com/peterbeck/chocolatey/master/icons/kopano.png</iconUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>Kopano AD Extension provides the ability to manage Kopano objects directly from the native “Active Directory Users and Computers” MMC-based management utility, which most administrators are used to with managing objects in Active Directory.</description>
<summary>Kopano ADS</summary>
<releaseNotes>initial package</releaseNotes>
<copyright>2017 Kopano</copyright>
<language />
<tags>groupware kopano ads mmc nightly</tags>
<dependencies>
<dependency id="RSAT" version="1.0.7" />
</dependencies>
</metadata>
</package>

View File

@ -0,0 +1,36 @@
# Kopano ADS (mmc extension)
# 2017 foo.li systeme + software
$packageName = 'kopano-ads-nightly'
$packageSearch = 'Kopano ADS'
$installerType = 'msi'
$silentArgs = '/qb'
$version = '1.0.71'
$intversion = '1.0-71'
$url = 'https://download.kopano.io/community/adextension:/KopanoADS-' + $intversion + '-noarch.msi'
$url64 = $url
$checksum = '306C64A745CC796F38A28DC8E367EB28E90B5CC0'
$checksumType = 'sha1'
$checksum64 = $checksum
$checksumType64 = $checksumType
try {
$app = Get-ItemProperty -Path @('HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*',
'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*') `
-ErrorAction:SilentlyContinue | Where-Object { $_.DisplayName -like $packageSearch }
if ($app -and ([version]$app.DisplayVersion -ge [version]$version)) {
Write-Output $(
'Kopano ADS ' + $version + ' or greater is already installed. ' +
'No need to download and install again. Otherwise uninstall first.'
)
} else {
if (Get-Process 'mmc' -ea SilentlyContinue) { Stop-Process -processname 'mmc' -Force -ea SilentlyContinue }
Install-ChocolateyPackage $packageName $installerType $silentArgs $url $url64 `
-checksum $checksum -checksumType $checksumType `
-checksum64 $checksum64 -checksumType64 $checksumType64
}
} catch {
throw $_.Exception
}