Rizi
Posts: 15
Joined: Tue Oct 29, 2013 6:33 pm

Detect installed "Product version"

Hi,

is it possible to detect the "Product version" of the previous installation during an upgrade installation? I´d like to do that within a vb script.

Furthermore is it possible to detect the value of a specific custom property that was used during the previous installation. Also i´d like to do that within a vb script during an upgrade installation.


Thank´s a lot.


Best regards
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Detect installed "Product version"

Hello,
is it possible to detect the "Product version" of the previous installation during an upgrade installation? I´d like to do that within a vb script.
Since you are upgrading after install, the only solution for determining the installed version is a custom action. You can find older versions through MsiEnumRelatedProducts function and get the version for each one through MsiGetProductInfo.
Furthermore is it possible to detect the value of a specific custom property that was used during the previous installation. Also i´d like to do that within a vb script during an upgrade installation.
In order to achieve that you can save your property into the registries as it is explained in the Add registry keys and values to your package article and then perform a registry search in the upgraded installation package.
In order to search through the registry you can go in the Search page and add a new search through the registry using the New Search toolbar button. The result of the search is stored by default in the RESULT_PROPERTY.

Please let us know if that helped, otherwise give us more details about your specific scenario (maybe exemplify).

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”