license to powershell script, some comments and junk spaces removed

This commit is contained in:
Peter V. Beck 2017-08-03 02:25:53 +02:00
parent 96e0c6b1e4
commit 6abc2eb2bd
3 changed files with 3 additions and 12 deletions

View File

@ -1,5 +1,6 @@
# Kopano ADS (mmc extension)
# 2017 foo.li systeme + software
# https://www.gnu.org/licenses/gpl.txt
$packageName = 'kopano-ads-nightly'
$packageSearch = 'Kopano ADS'
@ -14,7 +15,6 @@ $checksumType = 'sha1'
$checksum64 = $checksum
$checksumType64 = $checksumType
try {
$app = Get-ItemProperty -Path @('HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*',
'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*') `

View File

@ -14,7 +14,6 @@ $checksumType = 'sha1'
$checksum64 = 'C36DDEE5B6A83490921584F8B9BD7D0866752BED'
$checksumType64 = $checksumType
try {
$app = Get-ItemProperty -Path @('HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*',
'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*') `
@ -32,4 +31,4 @@ try {
}
} catch {
throw $_.Exception
}
}

View File

@ -26,14 +26,6 @@ try {
"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 `
@ -46,4 +38,4 @@ try {
}
} catch {
throw $_.Exception
}
}