4

I am desperately trying to add a manually created context menu entry that is context sensitive; currently, the entry is displayed at anytime, which is not what I need, and the entry should be visible for .htm and .html files.

  • I tried asking AI, read through tons of articles, and I've seen several topics like this and tried this, but none of my attempts worked
  • My attempts so far were adding to the Registry in these locations:
    # I tried both .htm and .html!
    

    HKCR\SystemFileAssociations.htm\ShellEx
    HKCR.htm HKCR\htmlfile

I am very desperate, to be honest. Trying out what the guy in the first link answered seems promising, but I don't really know how to get to that location when you consider that .htm and .html files are opened by default with Firefox on my computer.

If you could help me, I'd be really happy! :)

JW0914
  • 9,096

1 Answers1

6

The "file extension" keys such as .htm usually don't contain their own settings directly; instead, their (Default) value points to a named filetype (the ProgId) – which may indeed be htmlfile, but might also be Firefox.Something, or SomethingElseHTML – and that contains the real filetype settings.

So, for example, if your HKCR\.html contains:

Value Type Data
(Default) REG_SZ Firefox.Something

...then the settings are actually taken from HKCR\Firefox.Something\.

(Basic "run an .exe" menu items go under Shell – not ShellEx.)

grawity
  • 501,077