Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I created an installer to a windows service which didnt have any custom action events initially.
After few months, i upgraded the same MSI but with couple of custom action events and overriden methods in the code such as Before UnInstall,OnCommiting,Commit.

But it seems like those events/methods are not being hit upon upgradation.

Could you please suggest where i'm going wrong or do I need to set any properties?
Posted
Updated 6-Jul-15 3:12am
v2

1 solution

if you're not changing the package code, msiexec will use the cached version, IIRC

REINSTALLMODE=vomus is a good way to get out of holes like this

the actual solution (i've found) is to use the same upgradecode for all the same product, change the package code and product code for every build (and the version number) and then add an entry on the Upgrade table quoting your upgradecode - it means every msi build removes and reinstalls your product on each run
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900