I have an application where I bundle JRE inside the main installer, I first create the installer for JRE, and then package is inside the main installer.
I was using the jdk-8u152 and I am upgrading it to JDK >= 14.0.2 and using wix to create MSI and installer.
After creating a new JRE MSI with 14.0.2 version every file is copied except jre/bin/server/jvm.dll
This is because in jdk-8u152 we have file version for this dll as 25.71.0.1 and in jdk-14.0.2 the file version is 14.0.2.0 so during the upgrade it is removing the old jvm.dll but not copying the new jvm.dll.
Is there is any way I can tell Wix to ignore the file version for this file? I tried to set keypath as no but it still doesn't work. The only way it is working now is if I uninstall the old version and then installing the new one(but this approach will not work in production environments).
<Component Id="cmpC382483B5DD26ED7C03CDDC0619B42D9" Guid="{1413DBE0-340B-43A5-913C-2219B75919D6}">
<File Id="fil22C606D5B3214BF3F981341EF52BE00A" KeyPath="no" Source="$(var.JREDir)\bin\server\jvm.dll" />
</Component>