[wix-users] Force update of Single File
Brian E
brianke at gmail.com
Fri Mar 6 12:45:25 PST 2020
I have a weird predicament where a Nuget package in beta had a FileVersion
= 1.0.0 and ProductVersion = 2.0.0-beta. It had now been released for
production with FileVersion = 1.0.0 and ProductVersion = 2.0.0.
The problem I am running into is that a major upgrade is not replacing the
2.0.0-beta version of the file with the 2.0.0 version of the file during
installation.
Is there a way to force an update on a single file? I have tried using the
Version Lying trick but apparently that only works when File.DefaultVersion
is not set on the file itself. (according to this post
https://blog.stephencleary.com/2009/05/wix-version-lying-take-two.html)
I also cannot use the <Property Id="REINSTALLMODE" Value="amus" /> to force
a reinstall of everything as there are config files that should not be
replaced. I tried placing this property with a <Fragment /> that contained
the file to update but that still force the update of everything.
Brian Enderle
If you can't explain it simply, you don't understand it well enough. -
Albert Einstein
More information about the wix-users
mailing list