Kiran
Kiran

Reputation: 11

how can i make .msi product code(GUID) stable

I have a work to automate the installation/un-installation of msi packages. I build the packages and need to deploy them on application servers manually. As a part of automating these things i am trying to deploy the packages from Build server to Application Servers.

Let me explain my question in simple words: Suppose if I have a package (app-12.1) which is deployed on Application Server. I built a new package (app-12.2), i need to uninstall app-12.1 and need to install app-12.2 on application server from build server remotely.

In order to do above task, i am trying to extract product code(GUID) of app-12.2 package, with that i am trying to uninstall app-12.1

Problem: Product codes of app-12.1 and app-12.2 are different. As soon as i build new packages product code is changing by default.Due to that un-installation process is failing on application server.

while building the app-12.2 package how can i make sure product code(GUID) is STABLE. so that i can use that product code for un-installation of app-12.1

Please provide me the tips, such that i can keep product code(GUID) same for all the versions.

Thanks kiran

Upvotes: 1

Views: 680

Answers (1)

Peter Ritchie
Peter Ritchie

Reputation: 35869

You want different product codes but the same upgrade code. If you keep the upgrade code the same between versions but change the product code, then the previous version will be uninstalled automatically during the installation of the new version.

The following link might be of some use: What are Upgrade, Product and Package Codes used for?

Upvotes: 3

Related Questions