Detect old version and uninstall before installing new version
I know how to install a new version of an application. But I want the installer to detect if there is any older versions of the application and run the unstaller script before it installs the newer one. I have looked in the documentation but I didn't see anything that specifically addresses this type of installation.