FROM: http://www.tramontana.co.hu/wix/lesson1.php#1.7
If your application processes its own file data type, you need to register a file association for it. Place the ProgId inside your component. FileId must refer to the Id attribute of the File element, which describes the file used to process files of this extension. Pay attention to the exclamation mark: it will return a short path to the file instead of a long one:
<ProgId Id='AcmeFoobar.xyzfile' Description='Acme Foobar data file'> <Extension Id='xyz' ContentType='application/xyz'> <Verb Id='open' Sequence='10' Command='Open' Target='[!FileId]' Argument='"%1"' /> </Extension> </ProgId>
To assign an icon to this file type, you must specify the appropriate registry entries inside your component:
<Registry Id='FooIcon1' Root='HKCR' Key='.xyz' Action='write' Type='string' Value='AcmeFoobar.xyzfile' /> <Registry Id='FooIcon2' Root='HKCR' Key='AcmeFoobar.xyzfile' Action='write' Type='string' Value='Acme Foobar data file' /> <Registry Id='FooIcon3' Root='HKCR' Key='AcmeFoobar.xyzfile\DefaultIcon' Action='write' Type='string' Value='[INSTALLDIR]Foobar.exe,1' />
Greg Dean Mar 12 '09 at 11:29 2009-03-12 11:29
source share