Optional 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!

Koen
Posts: 21
Joined: Thu May 06, 2010 7:49 am

Optional file association

Hi,

Is it possible to create a dialog in the installer, that allows the user to accept or decline file association? For the dialog part I don't see a problem but how can I make the file association conditional?


Best regards,
Koen
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Optional file association

Hello,

To achieve a conditional install for an extension, go to the File Associations page, select your extension, check the "Place extension in a separate feature" checkbox then set a condition for the extension if needed. The extension will be installed if its associated feature is selected for install or if the condition is true, depending on what you selected as the Installation Behavior for your extension.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Koen
Posts: 21
Joined: Thu May 06, 2010 7:49 am

Re: Optional file association

Great thanks!

I've created a checkbox, which allows the user to implement the file association or not. But I'm having some difficulty with the property value which is associated with the checkbox. I've set its "Value" and "Default" property to "Yes". The "Property Name" is set to "USEEXTENSIONVXH". How can I change the "USEEXTENSIONVXH" property value to "No" when the user unchecks the checkbox?


Best regards,

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

Re: Optional file association

Hi,

The checkbox property must be either set to a value or empty. It cannot use two different values for checked and unchecked. You can read more about checkboxes here.

Please note that in the Extension Properties pane you can enable the "Show in FileAssociationsDlg dialog" option. This way you can automatically add a file association selection dialog.

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

Return to “Common Problems”