Automatical uninstallation of my already installed program

  • Thread starter Thread starter vidishasharma
  • Start date Start date
V

vidishasharma

Hi,

I have installed some program on users machine using msi installer.
Now there is new updated installer available. My problem is as soon as
user tries to install this new installer the previous installed
program should automatically get uninstalled and the the new one
shhould get installed.


How can I achieve this.
 
Hi,

The key of the anwser is the following properties "Version",
"ProductCode" "UpgradeCode" and "PackageCode" in your msi.
It's been a while since I built an msi package but, if I remember, to
do an "upgrade", you must ansure your 2 msi packages have the same
"UpgradeCode", and different "Version", "ProductCode", "PackageCode".

In addition, you must specify correctly the UpgradeTable in your new
msi

Here is some link that might helps you :

http://msdn.microsoft.com/en-us/library/465253cd(VS.80).aspx
http://msdn.microsoft.com/en-us/library/aa372374(VS.85).aspx
http://www.appdeploy.com/tips/detail.asp?id=106

Hope this can helps you.
 
Thanks for replying

I used this approach How I can still see my old versions in add/remove
progrom (which I go throgh control panel)

How can I remove the items from there as well.
 
Back
Top