Hi,
Because of how Advanced Installer currently works, you cannot associate two executables with the same file extension from within the "File Associations" page.
However, you can try this:
- in the "File Associations" page, in your ProgID add your New Extension and associate your first executable (exe1) with it
- add a new verb with your extension, let's say an 'open' verb with the label "&Use exe1"
- this associates your first executable with your .ext file to be used with the "Use exe1" context menu
- to use another executable with another verb, you will need to hardcode it directly into the registry
- in the "Registry" page create this structure
Code: Select all
HKEY_LOCAL_MACHINE\Classes\[Manufacturer].[ProductName]\shell\edit\command
- you can replace 'edit' with whatever verb you want from these predefined verbs:
Code: Select all
open, edit, play, print, preview, explore, find
- in the 'edit' registry key, add a new value
- leave the 'Name' field blank and in the data field put whatever string you want to appear in the context menu (for example "&Edit", "&Open", or "Use exe2")
- in the 'command' registry key add a new value
- leave the 'Name' field empty, but this time set the value to (including the quotation marks):
- replace 'exe2.exe' with the name of your second executable
That's it. Now build your installer and it should work.
Regards,
Gabriel
FOLLOW US
Get the latest news in Application Packaging