From df6fb174b0f6d5ee8b77fb878c27afeb1af78310 Mon Sep 17 00:00:00 2001 From: pohlymorph Date: Fri, 10 Jan 2025 16:14:07 +0100 Subject: [PATCH] beyondcompare-np:Add version 5.x.y.z --- bucket/beyondcompare-np.json | 90 +++++++++++++++++++ .../install-context-32bit.reg | 31 +++++++ .../install-context-64bit.reg | 31 +++++++ .../beyondcompare-np/uninstall-context.reg | 31 +++++++ 4 files changed, 183 insertions(+) create mode 100644 bucket/beyondcompare-np.json create mode 100644 scripts/beyondcompare-np/install-context-32bit.reg create mode 100644 scripts/beyondcompare-np/install-context-64bit.reg create mode 100644 scripts/beyondcompare-np/uninstall-context.reg diff --git a/bucket/beyondcompare-np.json b/bucket/beyondcompare-np.json new file mode 100644 index 000000000..5e4e3bd32 --- /dev/null +++ b/bucket/beyondcompare-np.json @@ -0,0 +1,90 @@ +{ + "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": [ + "Add Beyond Compare as a context menu option by running: '$dir\\install-context.reg'", + " - uninstall context menu option by running: '$dir\\uninstall-context.reg'", + "", + "---------------------------------------------------------------------------------", + "The manifest already updated to v5, if you want to stay on v4 proceed as follows:", + "", + "- Install 'versions/beyondcompare4' instead. (Recommendation)", + "- Execute 'scoop reset beyondcompare@4.x.y.z; scoop hold beyondcompare', you should have a v4 installation now.", + "- Check via `scoop info beyondcompare`", + "", + "Or maybe you want to upgrade license from v4 to v5: https://www.scootersoftware.com/kb/upgradepolicy" + ], + "innosetup": true, + "architecture": { + "64bit": { + "url": "https://www.scootersoftware.com/files/BCompareSetup-5.0.4.30422.zip", + "hash": "2cfb571c94885fce248e6eac4da3f02c930db35176bd964f22b203a6833f5672", + "installer": { + "file": "BCompareSetup.exe", + "args": [ + "/DIR=\"$dir\"", + "/VERYSILENT", + "/SUPPRESSMSGBOXES", + "/NORESTART" + ] + } + }, + "32bit": { + "url": "https://www.scootersoftware.com/files/BCompareSetup-5.0.4.30422.zip", + "hash": "2cfb571c94885fce248e6eac4da3f02c930db35176bd964f22b203a6833f5672", + "installer": { + "file": "BCompareSetup.exe", + "args": [ + "/32", + "/DIR=\"$dir\"", + "/VERYSILENT", + "/SUPPRESSMSGBOXES", + "/NORESTART" + ] + } + } + }, + "bin": [ + "Bcomp.exe", + "BCompare.exe", + "BCClipboard.exe" + ], + "shortcuts": [ + [ + "BCompare.exe", + "Beyond Compare 5" + ], + [ + "BCClipboard.exe", + "Clipboard Compare" + ] + ], + "post_install": [ + "$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', $install_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\"", + " }", + "}", + "if ($cmd -eq 'install') { reg import \"$dir\\install-context.reg\" *>nul }" + ], + "pre_uninstall": "if ($cmd -eq 'uninstall') { reg import \"$dir\\uninstall-context.reg\" *>nul }", + "checkver": { + "url": "https://www.scootersoftware.com/kb/dl5_winalternate", + "regex": "files/BCompareSetup-([\\d.]+)\\.zip" + }, + "autoupdate": { + "url": "https://www.scootersoftware.com/files/BCompareSetup-$version.zip" + } +} 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] +""=-