Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WiX: Old versions don't disappear in Add/Remove Programs list

I have a Windows Service that I install and upgrade with WiX, and this works great (it's very fast!). The only problem is that if I upgrade from, say, 1.0 to 1.1, both copies still have entries in the Add/Remove Programs list.

So how can I make sure WiX removes its old/outdated entries in the Add/Remove Programs list when I perform an update?

like image 583
qJake Avatar asked Apr 14 '11 21:04

qJake


1 Answers

Not directly an answer to the question but ... the installer only looks at the first 3 groups of the version number, the 4th group is ignored. If the only difference in the version is in the 4th group then it looks the same to the installer so the old version may not be uninstalled.

1.2.3.0 will upgrade to 1.2.4.0 but 1.2.3.4 will not upgrade to 1.2.3.5 - it doesn't see the 4-5 change because it doesn't look there.

like image 93
CAD bloke Avatar answered Oct 20 '22 01:10

CAD bloke