You want to register your application to open automatically when the user selects certain file types in Windows Explorer.
Use the File Types Designer to configure a setup project accordingly.
You can register file types by modifying the registry manually using the techniques explained in recipe Access the Registry. However, a much better approach is to make these configurations once—at installation time—using the features built in to the Visual Studio .NET setup project.
To use this approach, begin by creating a setup project as described in recipe Create a Windows Installer Setup Project. Then follow these steps:
Right-click your setup project in Solution Explorer, and select ...