How do I set CosEdit as my default PDF editor on Windows?

Q:

It’s easy to set a default PDF viewer on Windows. But how can I set CosEdit (http://www.pdftron.com/pdfcosedit/index.html) as my default PDF editor, so that when I right-click on a PDF and select edit, the PDF is opened in CosEdit?

A:

Edit the registry (assuming that your CosEdit path is “D:\Program Files (x86)\PDFTron\CosEdit\CosEdit.exe”):

HKEY_CLASSES_ROOT\SystemFileAssociations.pdf\shell\edit\command
(default) REG_SZ “D:\Program Files (x86)\PDFTron\CosEdit\CosEdit.exe” %1

Now you when you right-click on a PDF, you should see “edit” in the context menu, and it should bring up CosEdit.