473,324 Members | 2,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Automatical uninstallation of my already installed program

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.
Jun 27 '08 #1
4 846
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/libr...cd(VS.80).aspx
http://msdn.microsoft.com/en-us/libr...74(VS.85).aspx
http://www.appdeploy.com/tips/detail.asp?id=106

Hope this can helps you.
Jun 27 '08 #2
I this is a Visual Studio setup&deployment project, that's what
RemovePreviousVersions is for.
Details:
http://www.simple-talk.com/dotnet/vi...etup-projects/

--
Phil Wilson
[Microsoft MVP-Windows Installer]
<vi***********@gmail.comwrote in message
news:98**********************************@d19g2000 prm.googlegroups.com...
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.

Jun 27 '08 #3
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.
Jun 27 '08 #4
Thanks for teh suggestions I was able to figure it out.
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: NormD | last post by:
Is it possible to rollback an uninstallation from uninstall custom action based on some user input. or any suggestions on how to do this. If the user has an earlier version of the product and...
6
by: Chad Crowder | last post by:
Getting the following error on my production server whether the file exists or not: "System.IO.IOException: Cannot create a file when that file already exists." Here's the code generating the...
2
by: Jennifer | last post by:
I am new to vb and .net framework. I wonder if I can use vb to creat an application which can install a list of applications from other drives of the machine to my current drive, and uninstall a...
1
by: archana | last post by:
Hi all, i have created windows service in c# .net. But at a time of building setuo of that service i forgot to specify uninstall action in custom actions. Because of which even if i tried to...
0
by: NickP | last post by:
Hi there, I have a small question regarding the uninstallation of VS.NET 2003/2005 and it's impact on the system. I have an application that functions as desired on all freshly installed...
2
by: james | last post by:
Not sure if this is the right group, but anyway. I've built a setup project in vs2005 to install my program. All works fine, until I issue an update. If anyone tries to install it, they get the...
1
by: keri | last post by:
Hi, I use the below for the user to view their outlook calendar Sub DisplayInbox() Dim myolApp As Outlook.Application Dim myNameSpace As Outlook.NameSpace Dim myFolder As Outlook.MAPIFolder...
25
by: Andy_Khosravi | last post by:
I just recently changed my database that I'm running from a monolithic DB to a split FE/BE. The front end resides on the client machine and the BE resides on a network drive. I'm experimenting with...
3
by: shubby | last post by:
Hello, I installed JSecure Authentication plugin (for joomla 1.5) on my site, but i forgot the admin path that I configured, now is there any alternative way apart from admin panel to uninstall...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.