Archive: Right click on file menu..


Right click on file menu..
When my program is installed with the .exe that NSIS made I want to add an option to the menu when you right click on any file (not folders, just files) that when clicked it opens my program and passes the file path to the program..

Is there any way to do this?


You need to write special module. For example "WinRAR" have RarExt.dll

Registry:

HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\WinRAR "" "{B41DB860-8EE4-11D2-9906-E49FADC173CA}"
HKEY_CLASSES_ROOT\CLSID\{B41DB860-8EE4-11D2-9906-E49FADC173CA}\InProcServer32 "" "C:\PROGRAM FILES\WINRAR\rarext.dll"