I have a MSI build using WiX version 3.
All previous installers for the product we are deploying worked fine with the configuration specified (that is: if previous version exists, remove, then install the new version) – however, the new MSIs we build don’t install all files when it runs through the ‘remove first’ path.
If we manually remove the existing installation and then run the new version all the files are installed – and when I examine the MSI file in Orca the files and features are shown and seem to be fine.
We have tried running with verbose and extra logging turned on (/l*vx) however all we can see if that the files are not being registered & then installed.
Any thoughts or suggestions? This is driving us up the wall.
OK, well talking to someone else where I am helped me find a solution to the problem.
We added the property
REINSTALLMODEand set it toamus. What does this mean?By default the property is set to
omuswhich means: Reinstall if the file is missing or older, rewrite registry for machine and user hives, reinstall shortcuts. Changing this toamusbasically says: Reinstall all files.So, not 100% sure what the cause was – I suspect there may have been strange locks or something, but setting to
amusdoesn’t being on any adverse effects, so we’ll stick with that.Thanks for the suggestions.
(Also, more details on this property can be found here: MSDN: REINSTALLMODE Property