cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
huntant
Level 3

Handling Major Upgrades

If I have v1.0 installed and using the update service, it has a product code which has been written to the registry for the app to read at startup. When I create v2.0 I change the product code/package code/version because this is a new release and I need to perform an uninstall first.
How does the Update Service know that the new release is there since the product code has changed?



Anthony
0 Kudos
(1) Reply
Chris_Woerner
Level 10

I will assume that you are using Developer when I answer this question. The answer will be different if you are using Express or Professional.

So you have product code A, version 1.0 installed and it uses the Update Service. Life is good. When you build product code B, version 2.0, you use something calledan upgrade code to relate the two products together. So when you install product code B, version 2.0, MSI will search for previously installed applications with the upgrade code. If found, the old products will be uninstalled first. All that is done outside of the Update Service. The Update Service is only used to help deliver and run the setup for product B, version 2.0.

Of course, your product B, version 2.0 will have to update the registry setting that the Update Service uses.

There is a good help topic on creating Major Upgrades in the Developer help.
0 Kudos