Hello Mireille and welcome to our forums!
You should condition the upgrade installation based on a Windows Installer Product Upgrade Code search result. You can find more information regarding Product identification in the following link:
Product Identification (ProductCode and UpgradeCode). To achieve this you must follow these steps:
-go to your upgrade installation project, to "Product Details" page, "Product IDs" tab and copy the Upgrade Code.
-go to "Search" page and create a new "Extended Search". Select "Product Version (identify by Upgrade Code)" criteria. In the Upgrade Code paste the code you copied earlier. This search will be named by default "RESULT_PROPERTY" and will store the result in the property with the same name.
-go to "Launch Conditions" page, "Custom" tab and create a new custom launch condition. In the condition field enter the following condition :
-in the description field enter a message to be displayed if the product is not installed
This method will enable the upgrade if any version of the application is installed. If you want to enable it for a specific version you could search for that version's "Product Code" instead of the "Upgrade Code" which is specific to all versions of a product.
Can you give us more details regarding why you need to prevent the installation for machines that do not have an old version installed?
Best regards,
Sorin
FOLLOW US
Get the latest news in Application Packaging