Kopano DeskApp and OL Extension (both nightly/community editions)

This commit is contained in:
2017-08-01 21:42:32 +02:00
parent 2e2150715e
commit bf9f23ca26
8 changed files with 133 additions and 0 deletions

View File

@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="nuspec" ContentType="application/octet" /><Default Extension="ps1" ContentType="application/octet" /><Default Extension="psmdcp" ContentType="application/vnd.openxmlformats-package.core-properties+xml" /></Types>

View File

@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.microsoft.com/packaging/2010/07/manifest" Target="/kopano-ol-extension-nightly.nuspec" Id="Rdbe6e18314e141eb" /><Relationship Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="/package/services/metadata/core-properties/272377ebb6b5492483752e4d852607f4.psmdcp" Id="Re8a5ca1ca2a849d3" /></Relationships>

View File

@ -0,0 +1 @@
src/kopano/kopano-ol-extension-nightly

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>kopano-ol-extension-nightly</id>
<version>1.5.214</version>
<title>Kopano Outlook Extension</title>
<authors>Kopano</authors>
<owners>foo.li systeme + software</owners>
<licenseUrl>https://www.gnu.org/licenses/gpl.txt</licenseUrl>
<projectUrl>https://download.kopano.io/community/olextension:/</projectUrl>
<iconUrl>https://raw.githubusercontent.com/peterbeck/chocolatey/master/icons/kopano-ol-extension.png</iconUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>Kopano Outlook Extension (nightly)</description>
<summary>Kopano OL Extension Nightly (unsupported)</summary>
<releaseNotes>initial nightly packaging</releaseNotes>
<copyright>2017 Kopano</copyright>
<language />
<tags>groupware kopano outlook-extension nightly</tags>
</metadata>
</package>

View File

@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8"?><coreProperties xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"><dc:creator>Kopano</dc:creator><dc:description>Kopano Outlook Extension (nightly)</dc:description><dc:identifier>kopano-ol-extension-nightly</dc:identifier><version>1.5.214</version><dc:language /><keywords>groupware kopano outlook-extension nightly</keywords><dc:title>Kopano Outlook Extension</dc:title><dc:subject>NuGet Package Explorer</dc:subject></coreProperties>

View File

@ -0,0 +1,49 @@
# Kopano Outlook Extension
# 2017 foo.li systeme + software
# https://www.gnu.org/licenses/gpl.txt
$packageName = 'kopano-ol-extension-nightly'
$packageSearch = 'Kopano OL Extension'
$installerType = 'msi'
$silentArgs = '/qb'
$version = '1.5.217'
$intvers = '1.5-217'
$url = 'https://download.kopano.io/community/olextension:/KopanoOLExtension-' + $intvers + '-32bit.msi'
$url64 = 'https://download.kopano.io/community/olextension:/KopanoOLExtension-' + $intvers + '-64bit.msi'
$checksum = '66F7CD2075EC5993CABB4B903E8A9E73EE450B08'
$checksumType = 'sha1'
$checksum64 = 'CF4587BEF7DC3F6E5B779467F61494C67AEF032F'
$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-Host -ForegroundColor DarkYellow $(
"Kopano OL Extension " + $version + " or greater is already installed. `n" +
"No need to download and install again. Otherwise uninstall first."
)
} else {
#check for outlook
#https://www.reddit.com/r/PowerShell/comments/47lhdt/simple_script_to_check_if_outlook_is_installed/
#if (Get-ItemProperty HKLM:\SOFTWARE\Classes\Outlook.Application -ErrorAction SilentlyContinue) {
# Write-Output "Outlook found"
#} else {
# Write-Output "Outlook could not be found"
# throw $_.Exception
#}
if (get-wmiobject Win32_Product |where {$_.Name -like "*Outlook*" -and $_.Version -ge "15"}) {
Write-Output "Outlook 2013 (or higher) seems to be present"
Install-ChocolateyPackage $packageName $installerType $silentArgs $url $url64 `
-checksum $checksum -checksumType $checksumType `
-checksum64 $checksum64 -checksumType64 $checksumType64
} else {
Write-Output "unsupported (or no) Outlook Version detected"
throw $_.Exception
}
}
} catch {
throw $_.Exception
}