Automatical uninstallation of my already installed program

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.
 
B

buttslapper

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.
 
V

vidishasharma

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top