AI and file associations/extensions - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ags2886
Posts: 3
Joined: Fri Feb 22, 2008 2:48 am

AI and file associations/extensions

Hi,
I'm adding a HTML editor to a setup and want to register "Edit" verb for "HTM" and "HTML" extensions with my editor (htedit.exe). "Open" function should be registered with a default browser.
First I defined a product key "HTEDIT" under a "Target Computer" in "File Associations" section. Then under "HTEDIT" I added new extensions: "htm" and "html" with a command: "mypath\htedit.exe". And finally under these two I added a new verb "&edit" - "edit". That's it.
But during an installation, setup doesn't preserve the other options/verbs for these extensions and overrides them just with one verb "edit" that I supplied in an installer. Is this right? What do I need to do to preserve all other verbs for these extension and just modify/add entry only for "Edit".

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

Hi,

This happens because of the way Windows Installer manages file associations (Advanced Installer uses the Windows Installer technology to create file associations).

In a future version of Advanced Installer we will include a custom method for managing file associations in order to avoid the bugs in Windows Installer. Until then, the only solution is to create the file association through a custom action.

You can read more about custom actions here:
http://www.advancedinstaller.com/user-g ... -page.html

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

Return to “Common Problems”