Checking sanity, Major Upgrade.
Gahhh, just need to check my sanity. I’m sure I have done this correctly.
Major upgrade: Change the product and package code, increase version number. Ensure entry in Upgrade Table – see below.
RemoveExsistingProducts action (with no conditions) is placed after InstallFinalize action.
After I install to test, it dosent remove the old version (noooooo).
Logs:
<Snip>
MSI (s) (9C:00) [10:36:45:276]: Doing action: FindRelatedProducts
Action ended 10:36:45: LaunchConditions. Return value 1.
MSI (s) (9C:00) [10:36:45:276]: Using cached product context: machine assigned for product: 80D08734567DB7846ACB22CADD5792EF
MSI (s) (9C:00) [10:36:45:276]: Using cached product context: machine assigned for product: 80D08734567DB7846ACB22CADD5792EF
MSI (s) (9C:00) [10:36:45:276]: Using cached product context: machine assigned for product: 80D08734567DB7846ACB22CADD5792EF
Action start 10:36:45: FindRelatedProducts.
MSI (s) (9C:00) [10:36:45:276]: Skipping action: ISPreventDowngrade (condition is false)
MSI (s) (9C:00) [10:36:45:276]: Skipping action: CCPSearch (condition is false)
MSI (s) (9C:00) [10:36:45:276]: Skipping action: RMCCPSearch (condition is false)
MSI (s) (9C:00) [10:36:45:276]: Doing action: ValidateProductID
Action ended 10:36:45: FindRelatedProducts. Return value 1.
<snap>
<Snip>
MSI (s) (9C:00) [10:36:48:599]: Doing action: RemoveExistingProducts
Action ended 10:36:48: InstallFinalize. Return value 1.
Action start 10:36:48: RemoveExistingProducts.
Action ended 10:36:48: RemoveExistingProducts. Return value 1.
Action ended 10:36:48: INSTALL. Return value 1.
<snap>
Thanks for any thoughts on the above.
Answers (1)
Bah, fixed it.
Needed to add another line to the Upgrade Table as the the "isPreventDowngrade" is not sufficient.
Same as in the picture above, but in the Attbs and Action column it was
257, and REMOVEEXISTINGPRODUCTS.