rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

File Associations of the same type for multiple programs

Hi,
my setup has two exe files to work with a certain file type. One for editing, one for viewing.
So I'd like to use the verb Edit for the edit.exe, and Open for the viewer.exe.
Is this possible?
How can I accomplish this with AI, so that the Windows Explorer has both entries in its toolbar and in the context menu?

Thanks
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: File Associations of the same type for multiple programs

Hello,

This could be done by using the functionality of our "File Associations" page. Just create two extensions with the same name targeting your EXE apps and setting specific verbs.

If you have any questions or doubts do not hesitate to write us back.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: File Associations of the same type for multiple programs

If I do this, AI combines them in some kind of way.
Try to add the same extension twice and use different exe files and different verbs.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: File Associations of the same type for multiple programs

Hello,

I have further investigated this and after debating the behavior with our development team it seems this happens due to a Windows Installer limitation. Our "File Associations" page uses the default Windows Installer support for file extensions and this is why we do not allow different verbs for different apps.

As a workaround solution you can the extension settings for one app into "File Associations" page and try to configure the second app extension settings from "Registry" page. Basically you can try to create in "Registry" page all the registries which register the file extension settings.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: File Associations of the same type for multiple programs

Do you have some examples what needs to be created in the registry?
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: File Associations of the same type for multiple programs

Hello,

Please find attached a small sample with similar settings configured in "Registry" and "File Associations" page.
sample FTA.zip
(54.13 KiB) Downloaded 253 times
However, please use it as a starting point for your requirements and make sure you thoroughly test its functionality and if it is the case adjust the registry settings accordingly.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”