ElDog
ElDog

Reputation: 1377

Overwrite pre-msi files in WiX

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

Answers (1)

Stein Åsmul
Stein Åsmul

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.

  • The use of companion files is what I would recommend.
  • Hacking file versions I do myself sometimes - just to make things work.
  • I prefer to move or rename files to "remove the problem".

See the above links for more on the above "options".


Further information:

Upvotes: 1

Related Questions