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!

Ross
Posts: 6
Joined: Fri Jun 24, 2005 4:10 pm

Conditional Dialog on Upgrade

Hi,

I am using AI Enterprise and I am trying to make my User Registration dialog appear only if this is a first install, not an upgrade. I've tried several built-in conditions in the "Published Events" for the preceding "Next" button but none have worked. I tried UPGRADINGPRODUCTCODE and "Not Installed" but they do not provide the desired results.

What is the proper way to disable this dialog on an upgrade? I do not wish to make a Patch installer.

Thanks.
Ross
Posts: 6
Joined: Fri Jun 24, 2005 4:10 pm

Some follow up...

I found that using MIGRATE in my conditional expressions produced the results I was looking for. It appears (from viewing the execution log) that MIGRATE is set when an older version of the product is being replaced by a newer version and not set otherwise.

This attribute does not appear in any AI documentation and is not a choice in any of the conditional-expression editors.

Is this an acceptable solution or is there a more generally accepted way to solve my problem?

Thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Ross,

I didn't know about MIGRATE property, I don't see it documented in the MSDN documentation. However other condition you can use is (NOT OLDPRODUCTS), OLDPRODUCTS property is set with the ProductCode of older version of the product if found.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Ross
Posts: 6
Joined: Fri Jun 24, 2005 4:10 pm

Gigi,

Thank you. The OLDPRODUCTS property does what I need.

Return to “Common Problems”