Archive: Add right click menu item?


Add right click menu item?
I thought I saw a thread related to this, but can't seem to find it.

I would like to add a right click menu item for certain file types. So when the user right clicks on this file they have the option to launch my app with this file name. Is this possible with NSIS?

Thanks,
Mike


Yes, have a look at the makensis.nsi in the NSIS program directory. This script shows how to add a context-menu entry for .nsi files.

~ Florian


Icon?
Great, that will help out a lot.

Any idea how to add an icon beside the menu item? I see that there is a "DefaultIcon" section though it doesn't seem to show an icon for makensis.exe.

Thanks for the help.
Mike


Adding an icon to a context-menu could only be done by a shell extension DLL. Have a look at this thread for some links concerning this topic.

~ Florian


Originally posted by F. Heidenreich
Adding an icon to a context-menu could only be done by a shell extension DLL. Have a look at this thread for some links concerning this topic.

~ Florian
Hi,

I think you meant "should" above as you can set an icon in the registry. As for the article, while the author obviously thinks he has everything covered, he fairly obviously doesn't. The only thing he has covered is nested installs/uninstalls (that is last installed, first uninstalled etc), a rare event, at least on my computer... Basically there is nothing you can do to ensure a problem free uninstall...

Bye
Dennis