Skip to content

Commit

Permalink
mp3tag: Update (un)install scripts and persist (#9840)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlawlessCasual17 authored Dec 8, 2022
1 parent 70ce39b commit 3a5dcdb
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions bucket/mp3tag.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,31 @@
"identifier": "Freeware",
"url": "http://help.mp3tag.de/misc_license.html"
},
"notes": [
"If you want 'mp3tag' as a context menu option run the following commands:",
"For 64bit Windows OS users run,",
"To Install:",
"start 'regsvr32' -Verb 'RunAs' -Args @(\"$dir\\Mp3tagShell.dll\", '/s')",
"To Uninstall:",
"start 'regsvr32' -Verb 'RunAs' -Args @('/u', \"$dir\\Mp3tagShell.dll\", '/s')",
"",
"For 32bit Windows OS users run,",
"To Install:",
"start 'regsvr32' -Verb 'RunAs' -Args @(\"$dir\\Mp3tagShell32.dll\", '/s')",
"To Uninstall:",
"start 'regsvr32' -Verb 'RunAs' -Args @('/u', \"$dir\\Mp3tagShell32.dll\", '/s')",
"",
"To find out if you have a have 32bit or 64bit Windows OS, run the following command:",
"(Get-CimInstance win32_operatingsystem).OSArchitecture"
],
"url": "https://download.mp3tag.de/mp3tagv318setup.exe#/dl.7z",
"hash": "520e74932fd8e59ca5febacd12ef9f6719cdfb955aa1341ff253c5e792167293",
"pre_install": [
"if (!(Test-Path \"$persist_dir\\mp3tag.cfg\")) { New-Item \"$dir\\mp3tag.cfg\" | Out-Null }",
"Remove-Item \"$dir\\`$*\", \"$dir\\Mp3tagUninst*\" -Recurse"
"'mp3tag.cfg', 'data\\columns.ini', 'data\\usrfields.ini' | ForEach-Object {",
" if (!(Test-Path \"$persist_dir\\$_\")) { New-Item \"$dir\\$_\" | Out-Null }",
"}",
"Remove-Item \"$dir\\`$*\", \"$dir\\Mp3tagUninst*\" -Recurse",
"Copy-Item \"$persist_dir\\export\\*\" \"$dir\\export\" -Recurse -ErrorAction 'SilentlyContinue'"
],
"bin": "mp3tag.exe",
"shortcuts": [
Expand All @@ -20,10 +40,20 @@
]
],
"persist": [
"data",
"export",
"data\\panels",
"data\\columns",
"data\\columns.ini",
"data\\usrfields.ini",
"mp3tag.cfg"
],
"pre_uninstall": [
"Copy-Item \"$dir\\export\\*\" \"$persist_dir\\export\" -Recurse -ErrorAction 'SilentlyContinue'",
"if (Test-Path 'HKLM:\\SOFTWARE\\Classes\\Directory\\shellex\\ContextMenuHandlers\\Mp3tagShell\\') {",
" if (!(is_admin)) {error \"$app requires admin rights to $cmd\"; break}",
" Start-Process 'regsvr32' -Wait -Verb 'RunAs' -ArgumentList @('/u', \"$dir\\Mp3tagShell32.dll\", '/s')",
" Start-Process 'regsvr32' -Wait -Verb 'RunAs' -ArgumentList @('/u', \"$dir\\Mp3tagShell.dll\", '/s')",
"}"
],
"checkver": "Mp3tag\\s+v([\\w.]+)",
"autoupdate": {
"url": "https://download.mp3tag.de/mp3tagv$cleanVersionsetup.exe#/dl.7z"
Expand Down

0 comments on commit 3a5dcdb

Please sign in to comment.