korr
Posts: 48
Joined: Tue Sep 09, 2014 3:13 pm

Extended Search - Product Version by Upgrade Code

Wed Dec 18, 2019 3:53 pm

We have a project that is doing searches for Visual Studio 2017 C++ Redistributables, since microsoft has split the product into two separate installers we made two searches (VC Redist additional and VC Redist minimum). The property names we used are VERSIONCOMPARE.VC14REDIST_ADDITIONAL and VERSIONCOMPARE.VCREDIST_MINIMUM and this had worked without issue until we upgraded to Advanced Installer 16.6. Advanced Installer takes the property name and tails "AiVerMin" to it, however in that process it seems that it has a max length it adheres to and trims the original property name to compensate. Then when the search completes and advanced installer sets the original property value, it actually determines the original property named based off of the modified 'AiMinVer' name. This causes successful searches to fail since the wrong property is created for the check.

Here are some logs to make this a bit more clear. The VERSIONCOMPARE.VC14REDIST_MINIMUM search creates a VERSIONCOMPARE.VC14REDIST_MINIMUMAiVerMin and then properly creates VERSIONCOMPARE.VC14REDIST_MINIMUM property with the found version information. The VERSIONCOMPARE.VC14REDIST_ADDITIONAL search creates VERSIONCOMPARE.VC14REDIST_ADDITIONAAiVerMin property which then creates a property VERSIONCOMPARE.VC14REDIST_ADDITIONA with the appropriate found version, however both of those properties are missing the 'L' at the end and therefor the check fails because VERSIONCOMPARE.VC14REDIST_ADDITIONAL does not exist

Code: Select all

2019-12-13T15:43:11.5487140Z MSI (s) (80!EC) [09:43:09:033]: PROPERTY CHANGE: Adding VERSIONCOMPARE.VC14REDIST_ADDITIONAAiVerMin property. Its value is '14.1'.
2019-12-13T15:43:11.5487140Z MSI (s) (80!EC) [09:43:09:033]: PROPERTY CHANGE: Adding VERSIONCOMPARE.VC14REDIST_ADDITIONA property. Its value is '14.12.25810'.

2019-12-13T15:43:11.5487140Z MSI (s) (80!EC) [09:43:09:048]: PROPERTY CHANGE: Adding VERSIONCOMPARE.VC14REDIST_MINIMUMAiVerMin property. Its value is '14.1'.
2019-12-13T15:43:11.5487140Z MSI (s) (80!EC) [09:43:09:048]: PROPERTY CHANGE: Adding VERSIONCOMPARE.VC14REDIST_MINIMUM property. Its value is '14.12.25810'.

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Extended Search - Product Version by Upgrade Code

Mon Dec 23, 2019 3:42 pm

Hi,

I tested the scenario, but I couldn't reproduce the problem. Can you send me a sample project that reproduces the problem to support at advancedinstaller dot com, so I can investigate it?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”