I am using Ant to deploy and install some Windows Installer packages (MSI) in different machines.
I would like to have Ant check if the msi package is already installed (using the ProductCode) in the machine, before trying to install it.
Is there a way to add a condition in Ant to check if the msi product is already installed?
I've found that to query Windows Installer products you can use the API: link and another link
I think my only option is to build a .exe that receives a ProductCode and uses the API to see if the msi is installed. Then somehow it tells Ant if the Product is installed or not.