Related to this: 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 my app 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.jpgOpenWithList
and HKCR.jpgOpenWithProgIds
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 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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…