vidur
Posts: 43
Joined: Thu Jul 31, 2014 4:21 am

Search registry during patch

Hi,

I'm trying to retrieve a registry value from my search during a patch. Is there any way this is possible:
or
I need to chagne an installer property during the patch

Sceneerio:

1.) Older version of the software sets registry value based on an installer property.
2.) registry value is updated during the life of the software
3.) When i patch it the registry value is updated to orignal isntaller value.

Is there any way i can avoid this, or update the installer property?

thanks
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Search registry during patch

Hello,

I think this happens due to the Windows Installer patch behavior. When the patch is installed the old MSI (cached in the Windows Installer folder) is recached with the new MSI info and then is launched a repair operation. During the repair the registry value it will be set to the original value installed by the old version (if it hasn't changed in the new MSI version).

However, to avoid this behavior, you should be able to use in the upgraded version of your project a registry value search (MY_SEARCH) which will search for the related value. Then, you should add the formatted reference of your search associated property ([MY_SEARCH]) in the "Value" filed of your registry value from "Registry" page.

Let us know if this helped, otherwise please send us to support at advancedinstaller dot com the .AIPs (project files) of your old version, upgraded version and of your patch project so we can investigate their settings.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”