473,320 Members | 1,862 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,320 software developers and data experts.

Deployment - Uninstall Previous Application

We are about to deploy a new version of our application re-written in .Net.
Our .Net app is using the installer included with VS.Net 2003. The
previous version of the application was deployed using InstallShield. Is it
possible, using a Custom Action, to call the previous apps uninstall
routine? If not, help on how to uninstall the previous version while still
using the .Net installer would be appreciated.
Mar 6 '06 #1
1 1236
Hi Eric,
Is it possible, using a Custom Action, to call the previous
apps uninstall routine? If not, help on how to uninstall the
previous version while still using the .Net installer would
be appreciated.


Based on my experience, a custom action is not suitable for removing an
existing product. The general convention to do such a task is via the
installation process' standard action--RemoveExistingProducts. To apply
this approach, you only need to add a corresponding row to specify the
target product's UpgradeCode and Product Code in your installation package
Upgrade table, e.g.

YourPreviouApp's UpgradeCode 1.0.0 Null Null 256 Null
YourPreviouApp's ProductCode
(Null means you don't need to specify a value in the corresponding cell)

But I am afraid you need to modify your installation package(.msi) via the
Orca utility:
Orca.exe
http://msdn.microsoft.com/library/de...us/msi/setup/o
rca_exe.asp)

The Visual Studio IDE doesn't have this function.

For the details information about the RemoveExistingProducts action, please
refer to the following Platform SDK article:
http://msdn.microsoft.com/library/de...us/msi/setup/r
emoveexistingproducts_action.asp
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
================================================== ====
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
================================================== ====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====

Mar 7 '06 #2

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

Similar topics

1
by: DB developer | last post by:
Hello friends I am trying to create a deployment project to distribute my VB.NET application with MSDE database. I am using VS.NET with MSDE 2000 deployment toolkit (release candidate) to achieve...
5
by: Arun Bhalla | last post by:
I'm working with VS.NET 2003 and .NET 1.1 (not SP1) on Windows XP SP1. My application is using the Windows Installer Bootstrap. (I may have also installed a module which detects requirements (.NET...
1
by: Richard Lewis Haggard | last post by:
I'm new to C# deployment project way of doing things and have run into a problem with a deployment project that has me stumped. I've put together a deployment of a project which works just fine for...
3
by: Aayush Puri | last post by:
Hi, I had created an ASP.NET web application and then created an MSI for it and sent it to one of my friends. The web app installed successfully and worked fine on my friend's server. But now I...
1
by: dave | last post by:
I have two questions regarding a VB.NET deployment project. 1) During an install, I would like any previous versions of the application to be uninstalled automatically. Currently, I have to...
1
by: Marty Cruise | last post by:
My application is run within an intranet environment and is installed on client machines. Each time the application is executed, it checks to see if a newer version is availble. If there is, it...
2
by: pmcguire | last post by:
I am reposting in this group after getting no response for a week in the deployment group. I have a setup project that uses custom actions. The project installs and runs fine on machines that...
2
by: WWengert | last post by:
I am developing a Windows application using VS2005 Pro (VB). The solution includes a setup project. I sent the setup files to a tester and he installed and used the program successfully. I then...
2
by: =?Utf-8?B?d2luZHNpbQ==?= | last post by:
Hi, I have used msi to create an installed program(version 4.2) on my computer.This program can create project file(.ws),just like the visual C#.net. And now I have deploied new version(4.3) of...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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)...
0
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...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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

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.