Hi,
For example, "AppSearch" action will search existing installation to decide the new installation will be an upgrade or fresh installation. Can a custom action get the result of AppSearch so it can do something special?
"AppSearch" standard action allows you to search for a file, component, registry key, folder or INI key on the target computer. The result of your search will be placed in a Property and it can be used in various Custom Actions or Conditions.
"FindRelatedProducts" standard action detects if older versions of the product (product registered with Windows Installer) are already installed. This standard action set the OLDPRODUCTS property if older version were found. OLDPRODUCTS is the property used by AI to store the detected products.
http://msdn2.microsoft.com/en-us/library/aa368600.aspx
So you need to condition the execution of the custom action with the value of OLDPRODUCTS property. If this property is empty then a fresh installation will be done. If not, older versions of the product were found and OLDPRODUCTS property contains their "Product Code".
Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
FOLLOW US
Get the latest news in Application Packaging