Skip to content

Commit

Permalink
beyondcompare4: Add manifest, version 4.4.7.28397
Browse files Browse the repository at this point in the history
- 'move' beyondcompare v4 manifest from bucket
  'extras' to bucket 'version'

  - give leeway for Beyond Compare v5 in 'extras'
  - see discussion ScoopInstaller/Extras#14026 (comment)
  - see discussion ScoopInstaller/Extras#14026 (comment)
  - see discussion ScoopInstaller/Extras#14026 (comment)
  • Loading branch information
pohlymorph committed Jan 9, 2025
1 parent f049d5f commit 36f52af
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 0 deletions.
63 changes: 63 additions & 0 deletions bucket/beyondcompare4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"version": "4.4.7.28397",
"description": "Directory and file compare functions in one package",
"homepage": "https://www.scootersoftware.com",
"license": {
"identifier": "Shareware",
"url": "https://www.scootersoftware.com/index.php?zz=kb_licensev4"
},
"notes": "Add Beyond Compare as a context menu option by running: '$dir\\install-context.reg'",
"architecture": {
"64bit": {
"url": "https://www.scootersoftware.com/files/BCompare-4.4.7.28397_x64.msi",
"hash": "089b8acbe228e876f4847132ec71fe256b134703e2e6205619b28905cb69f881"
},
"32bit": {
"url": "https://www.scootersoftware.com/files/BCompare-4.4.7.28397_x86.msi",
"hash": "7d722749e18309212f7d483b80e992b1c0f35dc437b93be6133cfe6b03574307"
}
},
"extract_dir": "Beyond Compare 4",
"bin": [
"Bcomp.exe",
"BCompare.exe"
],
"shortcuts": [
[
"BCompare.exe",
"Beyond Compare 4"
],
[
"BCClipboard.exe",
"Clipboard Compare"
]
],
"post_install": [
"$dir_escaped = \"$dir\".Replace('\\', '\\\\')",
"\"install-context-$architecture\", \"uninstall-context\" | ForEach-Object {",
" if (Test-Path \"$bucketsdir\\extras\\scripts\\beyondcompare4\\$_.reg\") {",
" $content = Get-Content \"$bucketsdir\\extras\\scripts\\beyondcompare4\\$_.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\"",
" }",
"}"
],
"checkver": {
"url": "https://www.scootersoftware.com/kb/dl4_winalternate",
"regex": "BCompare-([\\d.]+)_x64\\.msi"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://www.scootersoftware.com/files/BCompare-$version_x64.msi"
},
"32bit": {
"url": "https://www.scootersoftware.com/files/BCompare-$version_x86.msi"
}
}
}
}
23 changes: 23 additions & 0 deletions scripts/beyondcompare4/install-context-32bit.reg
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}]
@="CirrusShellEx"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}\InProcServer32]
@="$install_dir\\BCShellEx.dll"
"ThreadingModel"="Apartment"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\CirrusShellEx]
@="{57FA2D12-D22D-490A-805A-5CB48E84F12A}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\CirrusShellEx]
@="{57FA2D12-D22D-490A-805A-5CB48E84F12A}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\CirrusShellEx]
@="{57FA2D12-D22D-490A-805A-5CB48E84F12A}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\lnkfile\shellex\ContextMenuHandlers\CirrusShellEx]
@="{57FA2D12-D22D-490A-805A-5CB48E84F12A}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]
"{57FA2D12-D22D-490A-805A-5CB48E84F12A}"="Beyond Compare 4 Shell Extension"
30 changes: 30 additions & 0 deletions scripts/beyondcompare4/install-context-64bit.reg
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}]
@="CirrusShellEx"

[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}\InProcServer32]
@="$install_dir\\BCShellEx64.dll"
"ThreadingModel"="Apartment"

[HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}]
@="CirrusShellEx"

[HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}\InProcServer32]
@="$install_dir\\BCShellEx.dll"
"ThreadingModel"="Apartment"

[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\CirrusShellEx]
@="{57FA2D12-D22D-490A-805A-5CB48E84F12A}"

[HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\CirrusShellEx]
@="{57FA2D12-D22D-490A-805A-5CB48E84F12A}"

[HKEY_CURRENT_USER\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\CirrusShellEx]
@="{57FA2D12-D22D-490A-805A-5CB48E84F12A}"

[HKEY_CURRENT_USER\SOFTWARE\Classes\lnkfile\shellex\ContextMenuHandlers\CirrusShellEx]
@="{57FA2D12-D22D-490A-805A-5CB48E84F12A}"

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]
"{57FA2D12-D22D-490A-805A-5CB48E84F12A}"="Beyond Compare 4 Shell Extension"
12 changes: 12 additions & 0 deletions scripts/beyondcompare4/uninstall-context.reg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}]
[-HKEY_CURRENT_USER\Software\Wow6432Node\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}]

[-HKEY_CURRENT_USER\Software\Classes\*\shellex\ContextMenuHandlers\CirrusShellEx]
[-HKEY_CURRENT_USER\Software\Classes\Directory\shellex\ContextMenuHandlers\CirrusShellEx]
[-HKEY_CURRENT_USER\Software\Classes\Folder\shellex\ContextMenuHandlers\CirrusShellEx]
[-HKEY_CURRENT_USER\Software\Classes\lnkfile\shellex\ContextMenuHandlers\CirrusShellEx]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]
"{57FA2D12-D22D-490A-805A-5CB48E84F12A}"=-

0 comments on commit 36f52af

Please sign in to comment.