MSI upgrade is not overwriting few files.
Hi all,
I am doing major upgrade of MSI. Upgrade is happening fine but few xml files are not getting overwritten. Those files are getting deleted. I tried to set the version for each file in file table. I also removed the component and files but still issue is not fixed.
Please help me to resolve this issue.
Thanks in advance.
Sanjay
Answers (4)
I have previously had the issue of files not being present after an upgrade and this was fixed by setting the sequence of RemoveExistingProducts to earlier in the InstallExecuteSequence table. As pjgeutjens suggests, placing it after ‘InstallValidate’ is a good idea, as this will mean that the checks have been made to ensure the MSI will be installed once the old version has been removed. Setting the sequence of RemoveExistingProducts to too low a value could cause the old version to be removed, and then the new version to fail installation checks and not install, leaving the user with no version at all.
You should sync the component GUIDs if you have Remove Existing products after install finalize.
Comments:
-
not to mention the fact that for this type of upgrade, the component and feature structure should match between the different versions - pjgeutjens 12 years ago