Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade via msi

I want to upgrade my product via msi setup. The Upgrade Code of both msi remains the same because it's the same product family. Even if I change Version/Product Code of the msi for updating it just tells me the product is already installed or asks me to repair it. it doesn't ever provide an update option that replaces the current installation.

I'm using Visual Studio 2008 Pro to generate the msi setup

like image 677
Kai Avatar asked Jan 08 '10 15:01

Kai


People also ask

How do I get an MSI Upgrade code?

In Windows 10 it seems you can hover over an MSI with the pointer and you get a pop-up with some MSI details. You then just click through the list until you find the right product and open the MSI and find the upgrade code in the Property table.

What is Upgrade table in MSI?

To fully enable the installer's upgrade capabilities, every package should have an UpgradeCode property and an Upgrade table. Each record in the Upgrade table gives a characteristic combination of upgrade code, product version, and language information used to identify a set of products affected by the upgrade.


1 Answers

When you change the Version property in your Setup project, Visual Studio should prompt you to also change the ProductCode. You must do this. Then, you must also set the RemovePreviousVersion property to true. Make sure the UpgradeCode stays the same.

This is probably the easiest way and, from reading your question, what you are looking for. Note that this is more of an uninstall, then reinstall, than an "upgrade" per se.

like image 197
Dave Mateer Avatar answered Oct 11 '22 18:10

Dave Mateer