According to the WiX documentation, EACH file should be wrapped with component tag.
What is the meaning of it? What if I put under one component multiple files? I don’t find
a clear answer on subject. How does it affects the product upgrade?
According to the WiX documentation, EACH file should be wrapped with component tag. What
Share
Basically it will break the “repair” option in your installer. Imagine the scenario, you have one component with 3 files:
Notice you have to set one of the files as a KeyPath and you can only set one per component.
Now if for some reason FileA gets deleted or corrupted after the install, you can do a repair and windows installer will check that file, find it is deleted or corrupted and mark the component for re-installation. This will then replace FileA, FileB and FileC with the correct versions inside the installer.
However if FileB or FileC are missing or corrupted but FileA is still OK, then windows installer will not replace anything as it will see the Component as valid.