My installer project file retrieves the version number from the executable program. For example, the old number is "0.200.1" but the new number is "1.0.24". But when the new version is installed I get the message that another version of the installer is already installed and it closes the installer.
This probably happens due to the fact that you did not change the "Product Code" after changing the setup version.
The Product Code can be found in "Product Details" page --> "Product IDs" tab.
The ProductCode property is a unique GUID used to identify your application. This identifier varies from version to version of the same installer.
Also, it is important to note that two products with the same ProductCode can not be installed on the same computer. Windows Installer will prevent this with an error reading:
Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Programs and Features in the Control Panel.
With that being said, could you please generate a new Product Code for the new version of your setup and let me know if that helps?
Yes this will detect previous version and upgrade it like this: first it uninstalls previous version and then in installs the new version of the product.
Thank for the information. Is there a way to uninstall the program if the version is newer? You are installing an old version of the program but the installer needs to uninstall the new version and install the old one. Is this possible?