Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 

Add item to Windows shell context menu to open your application

Read the full article here.

In this post I'll show how to that for context menus for Folders using a Visual Studio Setup Project, so after installing the application, when you right click on a folder, you can see such menu and when you click the menu, folder path will be passed to your application as command-line argument:

To add an item to context menu of folder, the setup should do the following configurations in registry:

HKEY_CLASSES_ROOT
    Directory
        shell
            OpenWithMyApp  → (Default): Text of the menu
                             Icon:      "Path to executable" 
                command    → (Default): "Path to executable" "%V"

About

This example shows how to register menu item in Windows shell context menu and pass selected folder or file name to the application.

Resources

Releases

No releases published

Packages

No packages published

Languages