How to register application for existing file types using WiX installer?

Posted by Marek on Stack Overflow See other posts from Stack Overflow or by Marek
Published on 2010-05-05T10:43:03Z Indexed on 2010/05/05 10:48 UTC
Read the original article Hit count: 216

related to this: http://stackoverflow.com/questions/138550/how-to-register-file-types-extensions-with-a-wix-installer but not a duplicate.

I need to handle existing file types (.jpg files).

I do not want to be the default handler for .jpg, I would just like to extend the "Open with" menu with a link to my app.

I see HKCR\.jpg\OpenWithList\ and HKCR\.jpg\OpenWithProgIds\ in the registry but I am not sure whether to write to these and how to do it correctly with WiX. Should I use something like this?

<ProgId Id='??what here?' Description='Jpeg handled by my App'>
  <Extension Id='jpg' ContentType='image/jpeg'>
    <Verb Id='openwithmyapp' Sequence='10' Command='OpenWithMyApp' Target='[!FileId]' Argument='"%1"' />
  </Extension>
</ProgId>

There are many ways how to fail here (like Photo Mechanics did, the HKCR for image file types is a real mess after I have installed this software)

How to do this correctly with WiX?

© Stack Overflow or respective owner

Related posts about wix

Related posts about installer