Follow the directions at
http://msdn2.microsoft.com/en-us/library/aa969376.aspx,
http://msdn2.microsoft.com/en-us/library/aa969377.aspx, and optionally
http://msdn2.microsoft.com/en-us/library/aa969375.aspx. Make sure you populate
OpenWithProgids so that your registration isn't.
A shellexecute with any file path will do launch it with the association
program.
The first two are just a set of best practices and an example scenario
following them. The third is for set user defaults. This allows users to set
your application as default from the windows UI, (or yours), and is capable of
updating the userchoice registry key that overrides the regular registration
mechanisms.
I'm happy to answer any questions that you may have in this space as I've been
looking at it a lot lately. (Also, the documentation is a little wrong - MSDN
has been notified but this was only brought up yesterday. Dashes in file
extensions are very much allowed, and it doesn't mention that extension
characters need to be kept in the ASCII range (so no fancy Unicode characters).
Also, don't register a long and short file extension - just register the long
file extension.)
HTH,
James
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Mensching
Sent: Monday, September 03, 2007 2:05 PM
To: Dan Beall; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Associating Icons to File Types
You want an Extension and possibly a ProgId.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan Beall
Sent: Thursday, August 30, 2007 09:34
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Associating Icons to File Types
Can anybody point me to instructions for:
(1) Associating an icon to a particular file type
(2) Launching the application to which that file type is associated when the
icon is double-clicked
Thanks!
Dan
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users