Conditional File Association - 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!

steelray_software
Posts: 1
Joined: Tue Mar 27, 2007 8:08 pm

Conditional File Association

My company writes a viewer for a popular application. The "parent" application allows the user to view and edit files, and our application lets a user view a file (created with the other application) even if the user doesn't have that application installed. Therefore, we need to have a conditional File Association. What we need specifically is to be able to check a registry setting, and if it's true, skip a file association, or at least default it to unchecked. Is this possible with version 4.8.1?

Which brings up another issue: The Help system mentions that you can add a File Association Dialog, but this is not in the list when I click Add Dialog in the Dialogs section. I have created two File Associations manually in the File Associations section. Is this the reason the dialog is not available to add?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The dialog that allows you to register or not the extensions is named "ExtRegDlg" and you can find it when you "Add Dialog...".

File associations are registered during "RegisterExtensionInfo" standard action. The default execution condition for this standard action is: AI_EXTREG <> "No". Were AI_EXTREG is the property of the RadioButtonGroup from "ExtRegDlg".

You can create a registry search in the "Search" page and use the result to set the default selected radio button in the "ExtRegDlg". Set the AI_EXTREG property to "No" if the search fails.

Let me know if you encounter any problems.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”