diff --git a/icons/openboard.png b/icons/openboard.png new file mode 100755 index 0000000..c7afe34 Binary files /dev/null and b/icons/openboard.png differ diff --git a/packages/openboard/openboard.nuspec b/packages/openboard/openboard.nuspec new file mode 100755 index 0000000..5527cf2 --- /dev/null +++ b/packages/openboard/openboard.nuspec @@ -0,0 +1,20 @@ + + + + openboard + 1.3.6 + OpenBoard + Open Education Foundation + foo.li systeme + software + https://github.com/OpenBoard-org/OpenBoard/blob/master/LICENSE + http://openboard.ch/index.en.html/ + https://raw.githubusercontent.com/peterbeck/chocolatey/master/icons/openboard.png + true + Interactive whiteboard for schools and universities + OpenBoard Whiteboard + release 1.5.2 + OpenBoard.org + + whiteboard admin + + diff --git a/packages/openboard/tools/chocolateyinstall.ps1 b/packages/openboard/tools/chocolateyinstall.ps1 new file mode 100755 index 0000000..a06432f --- /dev/null +++ b/packages/openboard/tools/chocolateyinstall.ps1 @@ -0,0 +1,35 @@ +# OpenBoard Whiteboard +# 2018 foo.li systeme + software +# https://www.gnu.org/licenses/gpl.txt + +$packageName = 'openboard' +$packageSearch = 'OpenBoard' +$installerType = 'exe' +$silentArgs = '/SILENT' +$version = '1.3.6' +$url = 'https://github.com/OpenBoard-org/OpenBoard/releases/download/v' + $version + '/OpenBoard_Installer_' + $version + '.exe' +$url64 = $url +$checksum = '02A3E147D680563ED48BA54E2DE7917C42368A3B' +$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 +} diff --git a/packages/openboard/tools/chocolateyuninstall.ps1 b/packages/openboard/tools/chocolateyuninstall.ps1 new file mode 100755 index 0000000..4fdda44 --- /dev/null +++ b/packages/openboard/tools/chocolateyuninstall.ps1 @@ -0,0 +1,34 @@ +#OpenBoard uninstaller + +$packageName = 'openboard' +$packageSearch = 'OpenBoard' + +$r = Get-ItemProperty -Path @( 'HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*', + 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*', + 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' ) ` + -ErrorAction:SilentlyContinue ` + | Where-Object { $_.DisplayName -like "$packageSearch" } + +$r | ForEach-Object { + $exe = $_.UninstallString | Select-String -Pattern ".*exe`"?$" + $msi = $_.UninstallString | Select-String -Pattern "^MsiExec.*$" + if ($exe) { + $installerType = 'exe' + $silentArgs = '/VERYSILENT' + $validExitCodes = @(0) + Uninstall-ChocolateyPackage -PackageName "$packageName" ` + -FileType "$installerType" ` + -SilentArgs "$($silentArgs)" ` + -File "$($_.UninstallString)" ` + -ValidExitCodes $validExitCodes + } + if ($msi) { + $installerType = 'msi' + $silentArgs = '/quiet /qn /norestart' + $validExitCodes = @(0,3010) + Uninstall-ChocolateyPackage -PackageName "$packageName" ` + -FileType "$installerType" ` + -SilentArgs "$($_.PSChildName) $silentArgs" ` + -ValidExitCodes $validExitCodes + } +} \ No newline at end of file