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
"Pengyu Hong" <hong@stat.harv ard.edu> wrote in message
news:usMRraugDH A.2352@TK2MSFTN GP09.phx.gbl...[color=blue]
> How to build an uninstall program for an installation program I created?
>
> Thanks a lot,
>
> Pengyu.
>
>[/color]
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.
--------------------[color=blue]
>From: "Pengyu Hong" <hong@stat.harv ard.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: <usMRraugDHA.23 52@TK2MSFTNGP09 .phx.gbl>
>Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
>NNTP-Posting-Host: h004005b6341c.n e.client2.attbi .com 24.91.148.192
>Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl
>Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1871 43
>X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
>
>How to build an uninstall program for an installation program I created?
>
>Thanks a lot,
>
>Pengyu.
>
>
>[/color]
Comment