Conditional Actions and Dialogs - 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!

mans
Posts: 1
Joined: Wed Nov 18, 2009 5:13 pm

Conditional Actions and Dialogs

Hi

I am trying to create an installer that generates a config file at install time. This can be done easily using advanced installer with a dialog and a custom action. However when i reinstall the application with a new version (not patch or autoupdate) I want to keep the generated config file and thus I don't want to show the dialog or run the custom action? How do I do this?

Best Regards

Måns Schultz
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Conditional Actions and Dialogs

Hi Måns,

You can detect an upgrade by using the OLDPRODUCTS property. Therefore, you can try using this property to condition the custom action and the "NewDialog" control events which show the custom dialog. The User Guide contains the Display a MSI dialog conditionally tutorial which may help you.

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

Return to “Common Problems”