license to powershell script, some comments and junk spaces removed

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

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
}
}