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!

avistatechnologies
Posts: 2
Joined: Sun May 08, 2016 10:08 am

Checking for existing version of software

We restrict the distribution of our software quite closely. I now need to issue an update, which I've built and appears to install ok. Ideally I want to check the user already has the software installed before proceeding. I'll do a different version without this check for new users.

Can someone point me to how I do this please? I've had a look through the instructions but can't quite get a handle on how to set it up.

(I've Enterprise edition, if that helps.)

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Checking for existing version of software

Hello,

During installation, you can detect if an older version of your application is already installed based on the OLDPRODUCTS property. This property is set only in a package which upgrades another package.
However, if the user first uninstall the old version from Control Panel and then install the upgraded version, then this property will be empty.

Let me know if that helped, otherwise please give me more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
avistatechnologies
Posts: 2
Joined: Sun May 08, 2016 10:08 am

Re: Checking for existing version of software

Hi Dan

Thanks, that sounds perfect. How would I go about doing that? Is it under Launch Conditions?

Sorry for the questions, I've made a lot of very basic MSIs before but this is the first time I've done anything complicated with one.

Thanks

Mike
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Checking for existing version of software

Hello Mike,

We apologize for our delayed reply. Somehow your last reply was overlooked by us.

Yes, to achieve what you want you should just define a custom launch condition, in "Launch Conditions page -> Custom tab", like this:
  • Condition: OLDPRODUCTS
    Description: You should already have an older product version installed before applying this update.
Let us know if there is anything we can help you with.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”