diff --git a/bucket/beyondcompare-np.json b/bucket/beyondcompare-np.json new file mode 100644 index 000000000..62a6f18c8 --- /dev/null +++ b/bucket/beyondcompare-np.json @@ -0,0 +1,112 @@ +{ + "version": "5.0.4.30422", + "description": "Directory and file compare functions in one package", + "homepage": "https://www.scootersoftware.com", + "license": { + "identifier": "Shareware", + "url": "https://www.scootersoftware.com/kb/licensev5" + }, + "notes": [ + "The manifest is already updated to v5, if you want to stay on v4 proceed as follows:", + "", + "- Install v4 via 'scoop install versions/beyondcompare4'", + "- Consider uninstalling v5 via 'scoop uninstall nonportable/beyondcompare-np'", + "", + "Or maybe you want to upgrade license from v4 to v5: https://www.scootersoftware.com/kb/upgradepolicy" + ], + "url": "https://www.scootersoftware.com/files/BCompare-5.0.4.30422.exe", + "hash": "d74892601a50514b5636e27d4be4d3ac38597f2f6c7c7b6b5b169a48ffa1f341", + "architecture": { + "64bit": { + "installer": { + "args": [ + "/DIR=\"$dir\"", + "/VERYSILENT", + "/SUPPRESSMSGBOXES", + "/NORESTART", + "/NOICONS", + "/CURRENTUSER" + ] + }, + "uninstaller": { + "file": "unins000.exe", + "args": [ + "/DIR=\"$dir\"", + "/VERYSILENT", + "/SUPPRESSMSGBOXES", + "/NORESTART", + "/NOICONS", + "/CURRENTUSER" + ] + } + }, + "32bit": { + "installer": { + "args": [ + "/32", + "/DIR=\"$dir\"", + "/VERYSILENT", + "/SUPPRESSMSGBOXES", + "/NORESTART", + "/NOICONS", + "/CURRENTUSER" + ] + }, + "uninstaller": { + "file": "unins000.exe", + "args": [ + "/32", + "/DIR=\"$dir\"", + "/VERYSILENT", + "/SUPPRESSMSGBOXES", + "/NORESTART", + "/NOICONS", + "/CURRENTUSER" + ] + } + } + }, + "bin": [ + "Bcomp.exe", + "BCompare.exe", + "BCClipboard.exe" + ], + "shortcuts": [ + [ + "BCompare.exe", + "Beyond Compare 5" + ], + [ + "BCClipboard.exe", + "Clipboard Compare" + ] + ], + "post_install": [ + "$dir_escaped = \"$dir\".Replace('\\', '\\\\')", + "\"install-context-$architecture\", \"uninstall-context\" | ForEach-Object {", + " if (Test-Path \"$bucketsdir\\$bucket\\scripts\\$app\\$_.reg\") {", + " $content = Get-Content \"$bucketsdir\\$bucket\\scripts\\$app\\$_.reg\"", + " $content = $content.Replace('$install_dir', $dir_escaped)", + " if ($global) {", + " $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')", + " }", + " $outfile_no_arch = $_.Replace(\"-$architecture\", \"\")", + " $content | Set-Content -Path \"$dir\\$outfile_no_arch.reg\"", + " Write-Host \"Generating file $outfile_no_arch\"", + " }", + "}", + "", + "if ($cmd -eq 'install') {", + " Invoke-Command {reg import \"$dir\\install-context.reg\" 2>&1 | Out-Null}", + " # delete installation entry from 'Apps & features'", + " Invoke-Command {reg delete \"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\BeyondCompare5_is1\" /f /va 2>&1 | Out-Null}", + "}" + ], + "checkver": { + "url": "https://www.scootersoftware.com/download", + "regex": "BCompare-([\\d.]+)\\.exe" + }, + "autoupdate": { + "url": "https://www.scootersoftware.com/files/BCompare-$version.exe" + } +} diff --git a/scripts/beyondcompare-np/install-context-32bit.reg b/scripts/beyondcompare-np/install-context-32bit.reg new file mode 100644 index 000000000..9332bbe31 --- /dev/null +++ b/scripts/beyondcompare-np/install-context-32bit.reg @@ -0,0 +1,31 @@ +Windows Registry Editor Version 5.00 + + +[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Cached] +"{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5} {000214E4-0000-0000-C000-000000000046} 0xFFFF"=hex(3):01,00,00,00,00,00,00,00,80,96,f0,89,7b,07,db,01 + + + + + + + + +[HKEY_CURRENT_USER\SOFTWARE\Classes\lnkfile\shellex\ContextMenuHandlers\Beyond Compare 5] +""="{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\Beyond Compare 5] +""="{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shellex\ContextMenuHandlers\Beyond Compare 5] +""="{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}\InProcServer32] +"ThreadingModel"="Apartment" +""="$install_dir\\BCShellEx64.dll" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}] +""="Beyond Compare 5" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\Beyond Compare 5] +""="{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}" diff --git a/scripts/beyondcompare-np/install-context-64bit.reg b/scripts/beyondcompare-np/install-context-64bit.reg new file mode 100644 index 000000000..d508f8f35 --- /dev/null +++ b/scripts/beyondcompare-np/install-context-64bit.reg @@ -0,0 +1,31 @@ +Windows Registry Editor Version 5.00 + + +[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Cached] +"{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5} {000214E4-0000-0000-C000-000000000046} 0xFFFF"=hex(3):01,00,00,00,00,00,00,00,80,96,f0,89,7b,07,db,01 + +[HKEY_CURRENT_USER\SOFTWARE\Classes\WOW6432Node\CLSID\{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}\InProcServer32] +"ThreadingModel"="Apartment" +""="$install_dir\\BCShellEx.dll" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\WOW6432Node\CLSID\{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}] +""="Beyond Compare 5" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\lnkfile\shellex\ContextMenuHandlers\Beyond Compare 5] +""="{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\Beyond Compare 5] +""="{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shellex\ContextMenuHandlers\Beyond Compare 5] +""="{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}\InProcServer32] +"ThreadingModel"="Apartment" +""="$install_dir\\BCShellEx64.dll" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}] +""="Beyond Compare 5" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\Beyond Compare 5] +""="{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}" diff --git a/scripts/beyondcompare-np/uninstall-context.reg b/scripts/beyondcompare-np/uninstall-context.reg new file mode 100644 index 000000000..9aa2c995b --- /dev/null +++ b/scripts/beyondcompare-np/uninstall-context.reg @@ -0,0 +1,31 @@ +Windows Registry Editor Version 5.00 + + +[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Cached] +"{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5} {000214E4-0000-0000-C000-000000000046} 0xFFFF"=- + +[HKEY_CURRENT_USER\SOFTWARE\Classes\WOW6432Node\CLSID\{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}\InProcServer32] +"ThreadingModel"=- +""=- + +[HKEY_CURRENT_USER\SOFTWARE\Classes\WOW6432Node\CLSID\{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}] +""=- + +[HKEY_CURRENT_USER\SOFTWARE\Classes\lnkfile\shellex\ContextMenuHandlers\Beyond Compare 5] +""=- + +[HKEY_CURRENT_USER\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\Beyond Compare 5] +""=- + +[HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shellex\ContextMenuHandlers\Beyond Compare 5] +""=- + +[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}\InProcServer32] +"ThreadingModel"=- +""=- + +[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{812BC6B5-83CF-4AD9-97C1-6C60C8D025C5}] +""=- + +[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\Beyond Compare 5] +""=-