AidanGuy
Posts: 13
Joined: Wed Feb 13, 2008 10:32 am
Location: UK

Advanced File Type options

I am trying to build an MSI that on installation sets up a new line in the options shown when a user right-mouse clicks on a particular file type.
The defult File Association for a .sgm file is either Adobe Framemaker or Arbortext EpicEditor. I don't want this changed but want to be able to set up that the top option on the list when a user right-mouse clicks on a .sgm file the first option on this list is for the installed application. This is done in Tools --> Folder Options --> File Types --> Advanced in Windows Explorer if that helps to clarify what i am trying to achieve.

I can only seem to get the MSI to set the priamry file association to the installed application.

I am still using the evaluation copy of the latest edition so am not restricted in any way at the moment

Any help will be much appreciated

Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Advanced File Type options

Hi,

This can be done by creating a new file association in your project. If the file is already associated with a program, the association you create should be added to the "Open With" list.

If this doesn't happen perhaps the other file associations are not configured correctly. In this case a solution is to create the registry entries manually in the HKEY_CLASSES_ROOT hive of the Registry page. The key should look like this:

Code: Select all

.ext
   OpenWithProgids             ProgID
where "ext" is the extension you want to associate and "ProgID" (an empty binary value) is the ProgID you created in the "File Association" page.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”