OL Extension 1.6.246, non-retail/retail check office (buggy, will not be accepted from chocolatey)
This commit is contained in:
parent
b8616741d4
commit
3d9250c62e
@ -2,7 +2,7 @@
|
|||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>kopano-ol-extension-nightly</id>
|
<id>kopano-ol-extension-nightly</id>
|
||||||
<version>1.5.239</version>
|
<version>1.6.246</version>
|
||||||
<title>Kopano Outlook Extension</title>
|
<title>Kopano Outlook Extension</title>
|
||||||
<authors>Kopano</authors>
|
<authors>Kopano</authors>
|
||||||
<owners>foo.li systeme + software</owners>
|
<owners>foo.li systeme + software</owners>
|
||||||
@ -12,7 +12,7 @@
|
|||||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||||
<description>Kopano Outlook Extension (nightly)</description>
|
<description>Kopano Outlook Extension (nightly)</description>
|
||||||
<summary>Kopano OL Extension Nightly (unsupported)</summary>
|
<summary>Kopano OL Extension Nightly (unsupported)</summary>
|
||||||
<releaseNotes>upgrade to 1.5.239 (27-09-2017)</releaseNotes>
|
<releaseNotes>upgrade to 1.6.246 (08-11-2017)</releaseNotes>
|
||||||
<copyright>2017 Kopano</copyright>
|
<copyright>2017 Kopano</copyright>
|
||||||
<language />
|
<language />
|
||||||
<tags>groupware kopano outlook-extension nightly</tags>
|
<tags>groupware kopano outlook-extension nightly</tags>
|
||||||
|
@ -6,13 +6,13 @@ $packageName = 'kopano-ol-extension-nightly'
|
|||||||
$packageSearch = 'Kopano OL Extension'
|
$packageSearch = 'Kopano OL Extension'
|
||||||
$installerType = 'msi'
|
$installerType = 'msi'
|
||||||
$silentArgs = '/qb'
|
$silentArgs = '/qb'
|
||||||
$version = '1.5.239'
|
$version = '1.6.246'
|
||||||
$intvers = '1.5-239'
|
$intvers = '1.6-246'
|
||||||
$url = 'https://download.kopano.io/community/olextension:/KopanoOLExtension-' + $intvers + '-32bit.msi'
|
$url = 'https://download.kopano.io/community/olextension:/KopanoOLExtension-' + $intvers + '-32bit.msi'
|
||||||
$url64 = 'https://download.kopano.io/community/olextension:/KopanoOLExtension-' + $intvers + '-64bit.msi'
|
$url64 = 'https://download.kopano.io/community/olextension:/KopanoOLExtension-' + $intvers + '-64bit.msi'
|
||||||
$checksum = '4B2280751803859E47FC738F1D82A1C92C263C42'
|
$checksum = '6F877FB2C693681F5E2002C5F9B365372A034C77'
|
||||||
$checksumType = 'sha1'
|
$checksumType = 'sha1'
|
||||||
$checksum64 = 'AE4E083F83E78D7E045141ECE8E36DF9F0D18E55'
|
$checksum64 = '1CA137E458ADEB7241F33CBD82E42E44925A109A'
|
||||||
$checksumType64 = $checksumType
|
$checksumType64 = $checksumType
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -26,7 +26,28 @@ try {
|
|||||||
"No need to download and install again. Otherwise uninstall first."
|
"No need to download and install again. Otherwise uninstall first."
|
||||||
)
|
)
|
||||||
} else {
|
} 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"}) {
|
if (get-wmiobject Win32_Product |where {$_.Name -like "*Outlook*" -and $_.Version -ge "15"}) {
|
||||||
|
#works with non-retail...
|
||||||
|
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 {
|
||||||
|
#works with retail versions...
|
||||||
|
$olkey = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE'
|
||||||
|
$olpath = (Get-ItemProperty $olkey -ErrorAction SilentlyContinue).Path
|
||||||
|
if ($olpath) {
|
||||||
|
if (Test-Path $olpath) {
|
||||||
|
if ($olpath -like "*Office15*") { Write-Host -ForegroundColor DarkYellow "Outlook 2013 detected" }
|
||||||
|
if ($olpath -like "*Office16*") { Write-Host -ForegroundColor DarkYellow "Outlook 2016 detected" }
|
||||||
Write-Output "Outlook 2013 (or higher) seems to be present"
|
Write-Output "Outlook 2013 (or higher) seems to be present"
|
||||||
Install-ChocolateyPackage $packageName $installerType $silentArgs $url $url64 `
|
Install-ChocolateyPackage $packageName $installerType $silentArgs $url $url64 `
|
||||||
-checksum $checksum -checksumType $checksumType `
|
-checksum $checksum -checksumType $checksumType `
|
||||||
@ -35,6 +56,11 @@ try {
|
|||||||
Write-Output "unsupported (or no) Outlook Version detected"
|
Write-Output "unsupported (or no) Outlook Version detected"
|
||||||
throw $_.Exception
|
throw $_.Exception
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
Write-Output "unsupported (or no) Outlook Version detected"
|
||||||
|
throw $_.Exception
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
throw $_.Exception
|
throw $_.Exception
|
||||||
|
Loading…
Reference in New Issue
Block a user