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!

matt.luthi@gmail.com
Posts: 44
Joined: Thu Jun 20, 2013 4:42 am

Detect when we are installing an upgrade

Hi, I would like to run a custom action only during an installation of an upgrade (post removal of the old version). How is that done please?

Thanks,
Matt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Detect when we are installing an upgrade

Hi Matt,

In order to achieve this you can add your custom action after the "Install Execution Stage -> Remove Resources" action group and set the "OLDPRODUCTS" condition for it. The [OLDPRODUCTS] property is set only if an older version of the product is already installed on the machine.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
matt.luthi@gmail.com
Posts: 44
Joined: Thu Jun 20, 2013 4:42 am

Re: Detect when we are installing an upgrade

Thanks, I'll give this a try.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Detect when we are installing an upgrade

You're welcome.

Just let us know if you encounter any problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”