[wix-users] REINSTALLMODE='ocmus' overwritten during Repair
Gary.Henry at microfocus.com
Thu Jul 7 10:58:42 PDT 2022
During a Repair I want to prevent a reinstall if the file being installed has the same version as the file already on the system. I was told to look at the REINSTALLMODE property so I used Orca to set REINSTALLMODE to 'ocmus' in my .msi where the 'o' option means:
o - Reinstall if the file is missing or is an older version.
The problem is that during a Repair the REINSTALLMODE that I set is overwritten to 'ecmus' where the 'e' option means:
e - Reinstall if the file is missing, or is an equal or older version.
As a result, the Repair is always trying to reinstall the file when the file is an equal version.
Here is a snippet from my log file during a Repair showing the REINSTALLMODE 'o' is replaced with 'e' for some reason:
Action 13:40:59: MaintenanceTypeDlg. Dialog created
MSI (c) (F8:40) [13:41:00:492]: PROPERTY CHANGE: Adding WixUI_InstallMode property. Its value is 'Repair'.
Action 13:41:00: VerifyReadyDlg. Dialog created
MSI (c) (F8:40) [13:41:01:005]: Note: 1: 2727 2:
MSI (c) (F8:40) [13:41:01:508]: Note: 1: 2727 2:
MSI (c) (F8:40) [13:41:01:508]: PROPERTY CHANGE: Modifying REINSTALLMODE property. Its current value is 'ocmus'. Its new value: 'ecmus'.
I have verified that the file installed is the same version as the file in the .msi. Is there a way during a Repair to prevent a reinstall if the file is an equal version?
More information about the wix-users