View Single Post
Old 5th June 2013, 00:25   #3
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,321
Originally Posted by Afrow UK View Post
The default value in the shell key will specify the default action. Its value should be set to "none".

WriteRegStr HKCR "Directory\shell" "" "none"
Setting the default shell value to none is not a good idea AFAIK, do you know any MSDN docs that say otherwise?

If all you are doing is adding HKCR\Directory\shell\mything\command it should not get invoked as the default action. The context menu for a file system folder comes from 3 places (5 on XP+) HKCR\Folder, HKCR\Directory and HKCR\AllFilesystemObjects and you should never touch the default shell value because it can mess up the way explorer opens folders!

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote