I've created an installer project for my .NET application. The installer is working, except that the Visual C++ Redistributable for Visual Studio 2017 is apparently not being installed when I want it to be.
I have set up the following Feature-based prerequisite:
Install conditions:
"Install prerequisite based on conditions"
Registry value contains version
HKLM\SOFTWARE\Microsoft\DevDiv\VC\Servicing\14.0\RuntimeMinimum\Version
14.10.25008
"Install prerequistie if all conditions are false"
"Use 64-bit locations when evaluation conditions on a 64-bit machine" is checked
Manual inspection on the target PC confirms that the key/value pair in the Search string does not exist. So, I think "all conditions are false" and the prerequisite should be triggered.
If I navigate to the folder where Advanced Installer has downloaded vc_redist.x64.exe and copy this file to the target, and install the prereq manually, then my application works fine. If I don't install the vc_redist.x64.exe manually, I get missing DLL exceptions at launch.
My installer project Package Definition Build setting: Package Type is configured as Single EXE setup (resources inside).
The target PC is an AWS Windows Server 2016 Base instance.
Any idea why the redist isn't being installed?
FOLLOW US
Get the latest news in Application Packaging