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!

shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

How to detect a product is installed or not

Hi,

As part of the installation, I try to uninstall some other products using the custom action(as part of the wizard dialog stage)
MsiExec.exe /passive /X {2DD6F5AF-AD29-4966-BD25-AE0EDA3930A3}

Case 1: Product is installed
Since un-installation would take considerable amount of time, I have used "passive", so that user knows that there is something happening.

Case 2: Product is not installed
Setup would just launch one dialog("Removing...") for couple of milliseconds.

Is it possible to detect whether "{2DD6F5AF-AD29-4966-BD25-AE0EDA3930A3}" is installed, and run the custom action(i.e uninstall) only if it is installed?

Regards,
Rohan
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to detect a product is installed or not

Hi Rohan,

In order to achieve this, you can go in the Search page, and create a "Product Version (identify by Product Code)" or "Product Version (identify by Upgade Code)" extended search, then use the search property as a condition for your custom action.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: How to detect a product is installed or not

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

Re: How to detect a product is installed or not

My pleasure.

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

Return to “Building Installers”