try/catch entfernt (request choco gep13)

This commit is contained in:
Peter V. Beck 2018-02-27 11:17:27 +01:00
parent 12da0febf6
commit 978861fdad

View File

@ -14,22 +14,6 @@ $checksumType = 'sha1'
$checksum64 = $checksum $checksum64 = $checksum
$checksumType64 = $checksumType $checksumType64 = $checksumType
try {
#version not in uninstaller entry, no check at the moment...
#$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 $(
# 'OpenBoard ' + $version + ' or greater is already installed. ' +
# 'No need to download and install again. Otherwise uninstall first.'
# )
#} else {
Install-ChocolateyPackage $packageName $installerType $silentArgs $url $url64 ` Install-ChocolateyPackage $packageName $installerType $silentArgs $url $url64 `
-checksum $checksum -checksumType $checksumType ` -checksum $checksum -checksumType $checksumType `
-checksum64 $checksum64 -checksumType64 $checksumType64 -checksum64 $checksum64 -checksumType64 $checksumType64
#}
} catch {
throw $_.Exception
}