Can’t add new items to Windows 7 “new” context menu

context menu

I'm trying to add a new item for creating a new .lua script in the "new" context menu.

I tried following this guide but it just doesn't show up on the context menu at all. I also tried doing it manually, by adding a new key to .lua named ShellNew, and creating a new string value called "NullFile" with no value attached to it. I can delete the ShellNew folders of other file extensions and they immediately disappear from the context menu just I would expect, but adding new items don't work. Any ideas?

The regedit version I have is 6.1, and most of the guides I've been referring to are for version 5.0

Best Answer

Try the following instead:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.lua]
@="LuaScript"

[HKEY_CLASSES_ROOT\.lua\ShellNew]
"NullFile"=""

[HKEY_CLASSES_ROOT\LuaScript]
@="Lua Script File"

The key to finding these was to essentially follow what Windows has for text files, or what it calls "Text Document." A few reboots later, I got the needed "new Lua script file" function.

Related Question