Can't add new items to Windows 7 "new" 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
Solution 1:
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.
Solution 2:
.lua should have as (Default) value empty or (value not set), if it has an association you could create a sub key with the name of the association and then in that sub key create the ShellNew. Other variables which can influence workings are Content Type and PerceivedType, if these are set these could disrupt normal operations, as described in that tutorial.
For ex. for .docx I have as (default) 'Word.Document.12', by default it has no ShellNew but a sub key called Word.Document.12 and in that there's the ShellNew.
If not, try to refresh or close explorer and restart it from task manager. Reg versions are not relevant, they merely come with the OS version.