If you've got a major upgrade element in your new product it should work. It's not clear to me what those strange errors are around the REP area in the log. I've never seen anything like that. It might be the kind of error you get when your ProductCodes or UpgradeCodes are not all uppercase, or the cached copy of the older MSI version isn't available or is inaccessible for some reason. If you look for FindRelatedProducts actions in the log you may see one that says something about detecting the older versioned product. The version values look ok - they are within the documented ranges, and you don't need a major upgrade element in the older version - I'm not sure what Pavan is getting at. You just need an UpgradeCode, ProductCode, ProductVersion. --------------- Phil Wilson
On Tue, Apr 15, 2014 at 8:32 AM, Pavan Konduru <pavan.kond...@accelrys.com> wrote: > Hi Jamie, > > The major upgrade section should have been present in the older product too > for the current installer to upgrade it. > > --Pavan > > -----Original Message----- > From: Jamie Hankins [mailto:jamiehank...@hotmail.com] > Sent: Monday, April 14, 2014 8:57 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Upgrade Doesn't Find Old Product > > I've been on this for a few hours now. I'm trying to write an upgrade. From > what I understand, it should be as simple as adding a MajorUpgrade section > with a DowngradeErrorMessage string, and having the same upgrade code. > However, it just isn't working out that way. I can install the old product > with the same name and same upgrade code, then install the new product, and > it just ignores the old one. I've dug through the WindowsInstaller log, and > nothing jumps out at me. It doesn't say anything about detecting the > previous version. It does run RemoveExistingProducts:MSI (s) (00:C4) > [20:25:10:060]: Doing action: RemoveExistingProductsMSI (s) (00:C4) > [20:25:10:060]: Note: 1: 2205 2: 3: ActionText Action 20:25:10: > RemoveExistingProducts. Removing applicationsAction start 20:25:10: > RemoveExistingProducts.MSI (s) (00:C4) [20:25:10:060]: Note: 1: 2205 2: 3: > Error MSI (s) (00:C4) [20:25:10:060]: Note: 1: 2228 2: 3: Error 4: SELECT > `Message` FROM `Error` WHERE `Error` = 22 MSI (s) (00:C4) [20:25:10:060]: Note: 1: 2205 2: 3: Error MSI (s) (00:C4) [20:25:10:060]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 23 MSI (s) (00:C4) [20:25:10:060]: Note: 1: 2205 2: 3: Error MSI (s) (00:C4) [20:25:10:060]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 16 MSI (s) (00:C4) [20:25:10:060]: Note: 1: 2205 2: 3: Error MSI (s) (00:C4) [20:25:10:060]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 21 Action ended 20:25:10: RemoveExistingProducts. Return value 1. > One hint is that the ProductVersion property of the old product is > incorrectly formed. The person that did it wanted to use a date for the > build number, so here is the old version number: "2.0005.043012". > Could this be why upgrade isn't working? I'm using "2.49.1" for the new > version. Still, if it doesn't detect the old one as being older, it should > give me an error, not just ignore the old one, right? > This is my first post here, so please let me know if I've violated any > etiquette rules. :-) > Jamie > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the > definitive new guide to graph databases and their applications. Written by > three acclaimed leaders in the field, this first edition is now available. > Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users