C++ 2013 x86 Redistributable prerequisite install error
Our company installs prerequisites as part of our installation. We seem to be having trouble installing Microsoft Visual C++ 2013 (x86) Redistributable. We install both 32-bit and 64-bit redistributable files. Most of our installation are on Windows 10 64-bit. When running our installer program we are seeing the following error :
"The installation of Microsoft C++ 2013 Redistributable Package (x86) appears to have failed. Do you want to continue the installation?"
Actually the redistributable files are already installed on our 64-bit Windows 10 test machines. There are six files installed (3 - x86 and 3 - x64) with 3 different versions. So we are wondering why InstallShield is trying to install the (x86) redistributable file.
The InstallShield 2020 prerequisite files for these C++ 2013 redistributable files are configured to look for specific registry keys and install the redistributable files if the keys do not exist. The registry hive specified is:
Checking this location the keys specified in the prerequisite files do not exist. However, checking at registry hive location that includes Wow6432Node, the keys do exist (all six versions).
It is my thought the error occurs because the specific (x86) key is not found. Otherwise the installer should not try to install it. Do we need to change the value of the key to include "Wow6432Node"?
Attempting to manually install the files "vcredist_x86.exe" and "vcredist_x64.exe" display a dialog titled "Modify Setup" and prompts the user to click "Repair", "Uninstall" and "Cancel". It is my thought that these redistributable files are properly installed.
Can someone provide us help with this problem?
Did you modify the prq files, or you are using the default installshield shipped prq files,
Are you using download from web option or shipping the prq files as part of your installer?
If you are sure the uninstall code is not changed, and only the path is the issue, then you can change the condition of registry to look for 32 bit location by checking this radio button, Please refer attached screenshot,
Please change this option and try to install and see it works or not, if you still face the issue, please share the prq files and the let us know the version of VC++2013 installed in the machine.
It turns out that modifying the prerequisite files in the InstallShield IDE saved the changes to folder C:\Program Files (x86)\InstallShield\2020\SetupPrerequisites and not our source folder location. I needed to edit the prerequisite files and update the LocalFile path to point to our source file location.
After editing the prq, on prerequisite editor use file save as button and the files to your own destination path, else you can manually copy the files from local SetupPrerequisites folder to your own path where you have other prq files.