View Single Post
Old 4th June 2013, 23:25   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,296
Quote:
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