Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mp3tag: Enhance pre_install script, add pre_uninstall script, and change persist #9840

Merged
merged 4 commits into from
Dec 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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