Reputation: 27200
In Windows, you can right-click a file, and there is an option which lets you choose which program to launch with this file. So, for example, when user right-clicks a .cdr file, he can choose Open With -> Corel Draw
option, and it would be launched with Corel Draw.
Now, I need to add certain program to that list (program has to be launched with some other parameters, as well). But I do not want to change the default program for that file. Is there a way to do it?
Upvotes: 1
Views: 263
Reputation: 11530
The following registry keys control this list:
HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ FileExts \ .FileExtension \ OpenWithList
HKEY_CLASSES_ROOT \ .FileExtension \ OpenWithList
See this MSDN page for more information on the format.
Upvotes: 1