From c5cc97041b9bf63f133b21a81fbdc14f81b6533e Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 26 Feb 2019 22:55:43 +0700 Subject: [PATCH] Add Windows context menu helper to MSI package by default. --- build.xml | 3 ++ installer/msi/menu/add-context-menu.reg | 44 ++++++++++++++++++++++ installer/msi/menu/remove-context-menu.reg | 11 ++++++ 3 files changed, 58 insertions(+) create mode 100644 installer/msi/menu/add-context-menu.reg create mode 100644 installer/msi/menu/remove-context-menu.reg diff --git a/build.xml b/build.xml index a5ec7942..f2aaeb47 100644 --- a/build.xml +++ b/build.xml @@ -366,6 +366,9 @@ + + + diff --git a/installer/msi/menu/add-context-menu.reg b/installer/msi/menu/add-context-menu.reg new file mode 100644 index 00000000..4f230598 --- /dev/null +++ b/installer/msi/menu/add-context-menu.reg @@ -0,0 +1,44 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\FileBotCommands] +"MUIVerb"="FileBot" +"SubCommands"="FileBot.Rename.Movie;FileBot.Rename.Series;FileBot.Rename.Anime" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\FileBotCommands] +"MUIVerb"="FileBot" +"SubCommands"="FileBot.Rename.Movie;FileBot.Rename.Series;FileBot.Rename.Anime;FileBot.Script.AMC;FileBot.Script.Artwork.Movie;FileBot.Script.Artwork.Series;FileBot.Script.Subtitles" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Rename.Movie] +@="Rename Movies" +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Rename.Movie\command] +@="cmd /c filebot -rename -r \"%1\" --db TheMovieDB --format \"{plex.name}\" -non-strict --log-file context.log" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Rename.Series] +@="Rename TV Series" +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Rename.Series\command] +@="cmd /c filebot -rename -r \"%1\" --db TheTVDB --format \"{plex.name}\" -non-strict --log-file context.log" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Rename.Anime] +@="Rename Anime" +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Rename.Anime\command] +@="cmd /c filebot -rename -r \"%1\" --db AniDB --format \"{plex.name}\" -non-strict --log-file context.log" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Script.AMC] +@="Import to Video Library" +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Script.AMC\command] +@="cmd /c filebot -script fn:amc \"%1\" --output \"%%USERPROFILE%%\\Videos\" -non-strict --log-file context.log" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Script.Artwork.Movie] +@="Fetch Artwork for Movies" +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Script.Artwork.Movie\command] +@="cmd /c filebot -script fn:artwork.tmdb \"%1\" -non-strict --log-file context.log" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Script.Artwork.Series] +@="Fetch Artwork for TV Series" +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Script.Artwork.Series\command] +@="cmd /c filebot -script fn:artwork.tvdb \"%1\" -non-strict --log-file context.log" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Script.Subtitles] +@="Fetch Subtitles" +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Script.Subtitles\command] +@="cmd /c filebot -script fn:suball \"%1\" -non-strict --lang en --log-file context.log" diff --git a/installer/msi/menu/remove-context-menu.reg b/installer/msi/menu/remove-context-menu.reg new file mode 100644 index 00000000..00cf1f86 --- /dev/null +++ b/installer/msi/menu/remove-context-menu.reg @@ -0,0 +1,11 @@ +Windows Registry Editor Version 5.00 + +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\FileBotCommands] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\FileBotCommands] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Rename.Movie] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Rename.Series] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Rename.Anime] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Script.AMC] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Script.Artwork.Movie] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Script.Artwork.Series] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBot.Script.Subtitles]