From bf9f23ca262243d8d903e58ecb00052868d7b268 Mon Sep 17 00:00:00 2001 From: Peter Beck Date: Tue, 1 Aug 2017 21:42:32 +0200 Subject: [PATCH] Kopano DeskApp and OL Extension (both nightly/community editions) --- .../kopano-deskapp-nightly.nuspec | 25 ++++++++++ .../tools/chocolateyinstall.ps1 | 35 +++++++++++++ .../[Content_Types].xml | 1 + .../kopano-ol-extension-nightly/_rels/.rels | 1 + .../kopano-ol-extension-nightly | 1 + .../kopano-ol-extension-nightly.nuspec | 20 ++++++++ .../272377ebb6b5492483752e4d852607f4.psmdcp | 1 + .../tools/chocolateyinstall.ps1 | 49 +++++++++++++++++++ 8 files changed, 133 insertions(+) create mode 100755 packages/kopano-deskapp-nightly/kopano-deskapp-nightly.nuspec create mode 100755 packages/kopano-deskapp-nightly/tools/chocolateyinstall.ps1 create mode 100755 packages/kopano-ol-extension-nightly/[Content_Types].xml create mode 100755 packages/kopano-ol-extension-nightly/_rels/.rels create mode 120000 packages/kopano-ol-extension-nightly/kopano-ol-extension-nightly create mode 100755 packages/kopano-ol-extension-nightly/kopano-ol-extension-nightly.nuspec create mode 100755 packages/kopano-ol-extension-nightly/package/services/metadata/core-properties/272377ebb6b5492483752e4d852607f4.psmdcp create mode 100755 packages/kopano-ol-extension-nightly/tools/chocolateyinstall.ps1 diff --git a/packages/kopano-deskapp-nightly/kopano-deskapp-nightly.nuspec b/packages/kopano-deskapp-nightly/kopano-deskapp-nightly.nuspec new file mode 100755 index 0000000..5a5eced --- /dev/null +++ b/packages/kopano-deskapp-nightly/kopano-deskapp-nightly.nuspec @@ -0,0 +1,25 @@ + + + + kopano-deskapp-nightly + 1.3.18 + Kopano DeskApp + Kopano + foo.li systeme + software + https://www.gnu.org/licenses/gpl.txt + https://download.kopano.io/community/deskapp:/Windows/ + https://raw.githubusercontent.com/peterbeck/chocolatey/master/icons/kopano-deskapp.png + true + From collaboration and sharing with Files or Web Meetings to the standard groupware tools; WebApp has a lot of great features to offer. Making the best use of these features would be even easier if it could be integrated with your day-to-day office applications. This is where DeskApp comes in. + +DeskApp is designed to be the bridge between WebApp and the desktop. DeskApp adds features a web application in a browser can’t, such as being set as the default email client, integrate with the file system to send any file as an attachment. Or even with the operating system so you can send emails from any office application. + Kopano DeskApp + initial package + 2017 Kopano + + groupware kopano deskapp nightly + + + + + \ No newline at end of file diff --git a/packages/kopano-deskapp-nightly/tools/chocolateyinstall.ps1 b/packages/kopano-deskapp-nightly/tools/chocolateyinstall.ps1 new file mode 100755 index 0000000..546adf9 --- /dev/null +++ b/packages/kopano-deskapp-nightly/tools/chocolateyinstall.ps1 @@ -0,0 +1,35 @@ +# Kopano DeskApp +# 2017 foo.li systeme + software +# https://www.gnu.org/licenses/gpl.txt + +$packageName = 'kopano-deskapp-nightly' +$packageSearch = 'Kopano DeskApp' +$installerType = 'msi' +$silentArgs = '/qb' +$version = '1.3.18' +$url = 'https://download.kopano.io/community/deskapp:/Windows/kopano-deskapp-' + $version + '-x86.msi' +$url64 = 'https://download.kopano.io/community/deskapp:/Windows/kopano-deskapp-' + $version + '-x64.msi' +$checksum = '7A985E70BFA1C0E38ABAE078325AFD9F210F84D6' +$checksumType = 'sha1' +$checksum64 = 'C36DDEE5B6A83490921584F8B9BD7D0866752BED' +$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 DeskApp ' + $version + ' or greater is already installed. ' + + 'No need to download and install again. Otherwise uninstall first.' + ) + } else { + Install-ChocolateyPackage $packageName $installerType $silentArgs $url $url64 ` + -checksum $checksum -checksumType $checksumType ` + -checksum64 $checksum64 -checksumType64 $checksumType64 + } +} catch { + throw $_.Exception +} \ No newline at end of file diff --git a/packages/kopano-ol-extension-nightly/[Content_Types].xml b/packages/kopano-ol-extension-nightly/[Content_Types].xml new file mode 100755 index 0000000..6843631 --- /dev/null +++ b/packages/kopano-ol-extension-nightly/[Content_Types].xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/kopano-ol-extension-nightly/_rels/.rels b/packages/kopano-ol-extension-nightly/_rels/.rels new file mode 100755 index 0000000..e461bba --- /dev/null +++ b/packages/kopano-ol-extension-nightly/_rels/.rels @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/kopano-ol-extension-nightly/kopano-ol-extension-nightly b/packages/kopano-ol-extension-nightly/kopano-ol-extension-nightly new file mode 120000 index 0000000..cce01cb --- /dev/null +++ b/packages/kopano-ol-extension-nightly/kopano-ol-extension-nightly @@ -0,0 +1 @@ +src/kopano/kopano-ol-extension-nightly \ No newline at end of file diff --git a/packages/kopano-ol-extension-nightly/kopano-ol-extension-nightly.nuspec b/packages/kopano-ol-extension-nightly/kopano-ol-extension-nightly.nuspec new file mode 100755 index 0000000..b39ce17 --- /dev/null +++ b/packages/kopano-ol-extension-nightly/kopano-ol-extension-nightly.nuspec @@ -0,0 +1,20 @@ + + + + kopano-ol-extension-nightly + 1.5.214 + Kopano Outlook Extension + Kopano + foo.li systeme + software + https://www.gnu.org/licenses/gpl.txt + https://download.kopano.io/community/olextension:/ + https://raw.githubusercontent.com/peterbeck/chocolatey/master/icons/kopano-ol-extension.png + true + Kopano Outlook Extension (nightly) + Kopano OL Extension Nightly (unsupported) + initial nightly packaging + 2017 Kopano + + groupware kopano outlook-extension nightly + + \ No newline at end of file diff --git a/packages/kopano-ol-extension-nightly/package/services/metadata/core-properties/272377ebb6b5492483752e4d852607f4.psmdcp b/packages/kopano-ol-extension-nightly/package/services/metadata/core-properties/272377ebb6b5492483752e4d852607f4.psmdcp new file mode 100755 index 0000000..8c0205a --- /dev/null +++ b/packages/kopano-ol-extension-nightly/package/services/metadata/core-properties/272377ebb6b5492483752e4d852607f4.psmdcp @@ -0,0 +1 @@ +KopanoKopano Outlook Extension (nightly)kopano-ol-extension-nightly1.5.214groupware kopano outlook-extension nightlyKopano Outlook ExtensionNuGet Package Explorer \ No newline at end of file diff --git a/packages/kopano-ol-extension-nightly/tools/chocolateyinstall.ps1 b/packages/kopano-ol-extension-nightly/tools/chocolateyinstall.ps1 new file mode 100755 index 0000000..03536fc --- /dev/null +++ b/packages/kopano-ol-extension-nightly/tools/chocolateyinstall.ps1 @@ -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 +} \ No newline at end of file