Hi and welcome to Advanced Installer forums.
In order to achieve what you want, you can create you own custom action that searches for the name of the old installed version.
First, you can search for that name in the registry. For example, a package created with Advanced Installer stores the name of the product to the following registry path:
Software\[Manufacturer]\[ProductName] (where [ProductName] is the key that contains the name of the product)
Secondly, if the name of the product was not stored to the registry as mentioned above, you can search it by its Upgrade Code.
All the Upgrade Codes are stored in the registry at the following path:
Code: Select all
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes\{GUID}
Where {GUID} is the Upgrade Code of the product, encrypted as it is described in the
Packed GUID’s article.
That {GUID} key contains all the Product Codes related to it, also encrypted as described in the article mentioned above.
Also, you can use the
MsiEnumRelatedProducts function which returns the Product Codes related to an Upgrade Code. Then, you can go to the following registry path and take the name of the application related to the returned Product Code:
Code: Select all
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ProductCode}\DisplayName
Let us know if this helped, otherwise give us more details about your scenario.
Best regards,
Eusebiu
FOLLOW US
Get the latest news in Application Packaging