Hello,
I'm having a problem installing "Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.23918" as a prerequisite. It seems that the installer tries to install the package even though it (or a later version) is already installed. The prereq installer then fails and the installer shows a warning message. This is expected I suppose, since according to this page https://msdn.microsoft.com/en-us/library/ms235299.aspx, the 2015 redist packages have a different behavior, where they return an error to the caller in this situation.
The problem is really to find out why the installer tries to install the package. Even though it's a 32-bit package, it seems that the installation conditions are sometimes looking at the 64-bit locations instead of the 32-bit ones. E.g. when looking for file [SystemFolder]msvcp140.dll, it checks C:\Windows\system32\msvcp140.dll instead of C:\Windows\SysWOW64\msvcp140.dll.
I'm attaching a zip file with a pdf document that describes the tests I ran, with a lot of screenshots. Below are my conclusions from the end of that document. The full project can be downloaded from https://www.dropbox.com/s/pgo6f6ujnkkvx ... s.zip?dl=0
Conclusions?
1. The VC++ redist packages are very buggy. The x64 package deletes and overwrite the x86 package’s registry keys, and doesn't remove the x64 files from C:\Windows\system32.
2. The installer’s evaluation of conditions is also buggy. Looking at items 9-11 (in the pdf), it seems that the installer is actually finding the x64 files in C:\Windows\system32. And since these have version 14.0.23026, which is less than the minimum 14.0.23918, the installer tries to install the x86 redist package again. After I manually delete the left-behind files, the installation conditions evaluate correctly again.
3. The Searches that I added for the 32-bit files seem to be evaluating wrong. If the minimum version is set to 14.0.23918 the searches fail, but if it is set to 14.0.23917 the searches find the 14.0.23918 version files.
Best regards,
Magnus Hyllander
FOLLOW US
Get the latest news in Application Packaging