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

Uninstall program

How to build an uninstall program for an installation program I created?

Thanks a lot,

Pengyu.
Nov 15 '05 #1
2 4498
Hi,

Use Microsoft Windows Installer and get both for free. Indeed, I wouldn't
develop a custom installation routine unless there's a very good reason to
do so. While Windows Installer is capable of doing almost anything a decent
installation routine needs, and is extensible with custom actions, I'd even
say there is no reason to bother with custom installation routines at all -
well, unless Windows Installer cannot be used for some reason.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Pengyu Hong" <ho**@stat.harvard.edu> wrote in message
news:us**************@TK2MSFTNGP09.phx.gbl...
How to build an uninstall program for an installation program I created?

Thanks a lot,

Pengyu.


Nov 15 '05 #2
If you used a Setup project, or created an .MSI (the build output for a
setup project), you can write a batch file that will uninstall it if you
know the ProductCode (which is a property of the setup project).

The batch file would say:
msiexec /x {productcode}

---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "Pengyu Hong" <ho**@stat.harvard.edu>
Subject: Uninstall program
Date: Wed, 24 Sep 2003 17:56:26 -0400
Lines: 7
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <us**************@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: h004005b6341c.ne.client2.attbi.com 24.91.148.192
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:187143
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

How to build an uninstall program for an installation program I created?

Thanks a lot,

Pengyu.


Nov 15 '05 #3

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

Similar topics

2
by: Dave A | last post by:
I have an application that runs in the system tray (taskbar notification area) and it runs at startup. Occasionally I need to release a new version. I have created a deployment project in .Net. ...
5
by: Adam Clauss | last post by:
I am needing to automate some installation tasks. I first need to determine if there is already a version of a program installed. The program appears in the Add/Remove Programs in control panel,...
2
by: Keith Smith | last post by:
I have noticed that when I uninstall my app it doesn't delete the Program Files / MyApp folder if there are "new" files in it that weren't there before. It deletes all files except the "new" ones....
0
by: Patrick Dugan | last post by:
I have a vb.net deployment project. The program that gets installed can create custom named files. I don't see any way in the deployment project options to remove files that were not installed in...
1
by: Steve Long | last post by:
Hello all, is there a way to programatically uninstall a program via one of the Windows Management classes or one of the Win32 classes? I'm looking for a way to invoke the process that occurs when...
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...
0
by: dbowe | last post by:
It is uninstalling one of the applications that i want to uninstall, but not the other.......its not to do with the uninstall string ( if i swap over the strings then it uninstalls the other app fine...
2
by: Jerry | last post by:
Hi I have noticed that my apps don't have an uninstall capacity in the users programs shortcuts. While users can remove the program in the control panel, add remove programs, I would like to...
1
by: Luke | last post by:
Hey all, i'm currently working on a project for our IT group. what this program does is lists all the installed programs on the remote machine for the admin. what i'm trying to add is...
0
by: pstve | last post by:
Hi, I have a program (A), which installs a program B when installing A. The program B will be located on C:\\Program Files...\Program B But I also would like the Program B to uninstall when I'm...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.