Windows Explorer "Open in Avidemux" context menu entry script

Started by Urik, December 09, 2019, 06:22:28 PM

Previous topic - Next topic

Urik

I've made a few scripts to add a custom "Open in Avidemux" context menu entry (or fix registry registration for "Open with" entry list).


Update Jan 2021: updated scripts code and naming to make it simpler and less confusing. Consolidated some scripts.

Basically, there are two pairs of scripts now (with _add and _remove suffixes):

"open_in" - adds custom entry in context menu that is quickly accessible
"open_with" - modifies/updates registry key for the standard Windows Explorer "Open with" submenu

Both scripts search for avidemux.exe and avidemux_portable.exe as proof-of-installation.
All files must be run elevated (right click >"Run as administrator"). It's required for script to be able to make changes in registry.

Description:

open_in_avidemux_win64_add.bat - Adds "Open in Avidemux" entries. Searches for Avidemux installations in C:\Program Files  (folders with "avidemux" in their name) and also in the same folder the script is placed. If multiple installations found, will ask which one to choose. It can also accept full manual path entry (from user input). Before adding entries, asks for which file extensions to add for.

open_in_avidemux_win64_remove.bat - Removes previously added "Open in Avidemux" entries.

open_with_avidemux_registry_win64_add - Adds/Updates registry entry for "Open with" submenu. Function-wise, works similar to as open_in_avidemux_win64_add.bat

open_with_avidemux_registry_win64_remove - Deletes registry entry for "Open with" submenu

Made and tested in Win10 64bit.

Pastebin links
open_with_avidemux_registry_win64_add
open_with_avidemux_registry_win64_remove
open_with_avidemux_registry_win64_add
open_with_avidemux_registry_win64_remove

Github

PaulScow

Hi,
I've just installed version 2.8.1 and noticed I can no longer select AVIDemux from the 'Open With' context sub menu. It appeared in a previous version. I've run the 'add open with' script above, but the option still doesn't appear. AVIDemux also refuses to be added with the 'Choose Default Program' option. Why would the developers even choose to remove this option?
Any advice, help, solution would be greatly appreciated.
I'm running a Windows 7 Prof 64-bit SP1 as Admin.

Thank you.

sark

Version 2.8.1 is very old. Try with the more recent 2.8.2 from below and post back:

https://www.avidemux.org/nightly/win64/

EDIT:
           Tested. All scripts function on Win 7 Pro (64 bit) running the latest Avidemux 2.8.2.

PaulScow

Thank you very much, Sark. Sorry for the late reply.
I installed version 2.8.2 and the script to 'open with AVIdemux' now works. :)
Although the option to 'choose it as default program' still doesn't, but that's not a problem now.
Thank you so much, I was waiting for an eMail to notify me of a reply. I'll have to review my settings.  ;D
Thanks again, happy now.