I know that many questions are asked about how customizing the shell context menu, but what I've tried yet doesn't work so I'm adding a new question.

I'd like to add an entry "Open with Log Viewer" in the context menu when right-clicking on files with ".log" extension, to not change the default application associated with .log files (notepad) but allow the user to choose a custom application to open them.

To do this, I opened the registry key `HKEY_CLASSES_ROOT\.log`, and added some keys `shell\OpenWithLogViewer\command` with the correct values, but the entry is not displayed when I right-click on a file with .log extension.

Would you know how to fix this?

The key `HKEY_CLASSES_ROOT\.log` has for default value `txtfile`, and contains a subkey called `PersistentHandler`. Can this subkey be the origin of the problem?