Reputation: 1377
I have a WiX project making msi which replaces much older installation which was made by a set of scripts which unpacked zip files.
I'd like to specify that certain files in msi must force overwrite already existing non-versioned files from the old installation. Later it wouldn't be a pb as msi to msi update would be an upgrade.
Is it possible to specify on a per-file basis that msi must overwrite old non-msi installed files?
Upvotes: 1
Views: 607
Reputation: 42136
I will add some links for you and a summary.
Yes, you can overwrite single files by various means and you can even force downgrade files setup-wide, but the latter is terribly dangerous to do (information on dangers in section 4 here).
Ensure Overwrite: This answer describes various measures to always-overwrite files: Ensure file overwriting - with a WiX example. Here is an alternative answer.
See the above links for more on the above "options".
Further information:
REINSTALLMODE
property and the problems that are caused by using it to force-downgrading files during installation)Upvotes: 1