diff --git a/packages/openboard/tools/chocolateyinstall.ps1 b/packages/openboard/tools/chocolateyinstall.ps1 index a06432f..f217814 100755 --- a/packages/openboard/tools/chocolateyinstall.ps1 +++ b/packages/openboard/tools/chocolateyinstall.ps1 @@ -14,22 +14,6 @@ $checksumType = 'sha1' $checksum64 = $checksum $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 ` - -checksum $checksum -checksumType $checksumType ` - -checksum64 $checksum64 -checksumType64 $checksumType64 - #} -} catch { - throw $_.Exception -} +Install-ChocolateyPackage $packageName $installerType $silentArgs $url $url64 ` + -checksum $checksum -checksumType $checksumType ` + -checksum64 $checksum64 -checksumType64 $checksumType64