Application Uninstaller

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark

    #1

    Application Uninstaller

    Hello All,

    I have recently developed a small application with VB.net.
    What I wish to do is to add an uninstaller to the application that the user can use
    to uninstall my application instead of having to use the windows control panel.
    Can someone please show me how to do this iin VB.net?

    Thanks,

    Mark
  • Hank Coffin

    #2
    RE: Application Uninstaller

    Microsoft smiles upon those who use their Windows Installer service and Add/Remove panel. You can do a VS.NET Setup project pretty easily for a small app.
    Otherwise it is a matter of having another .exe (possibly .inf) that deletes the installed files.

    "Mark" wrote:
    [color=blue]
    > Hello All,
    >
    > I have recently developed a small application with VB.net.
    > What I wish to do is to add an uninstaller to the application that the user can use
    > to uninstall my application instead of having to use the windows control panel.
    > Can someone please show me how to do this iin VB.net?
    >
    > Thanks,
    >
    > Mark[/color]

    Comment

    • Elizabeth Newman [MS]

      #3
      RE: Application Uninstaller

      If you are using a VS setup project to install your application, use the following steps to create a link to unistall your application.

      1. In your setup project's directory, create a new uninstall.bat file.
      2. In your Setup project, copy the ProductCode property (something like [12345678-1234-1234-1234-123412341234])
      3. Edit the uninstall.bat so that it has one line that says:
      Msiexec /x [insert product code here]
      4. Add the uninstall.bat to your setup project's application folder.
      5. Right-click on the uninstall.bat to create a shortcut, and then put it in the Start menu folder you want it in (in the setup project).
      6. Rename the Shortcut to something like "Uninstall MyApplication"

      Hope this helps,
      Elizabeth Newman

      --------------------[color=blue]
      >Thread-Topic: Application Uninstaller
      >thread-index: AcRj2R0HQUnAmZ2 ASfSbISxEL6E5Cw ==
      >X-WBNR-Posting-Host: 202.180.83.6
      >From: "=?Utf-8?B?TWFyaw==?=" <Mark@discussio ns.microsoft.co m>
      >Subject: Application Uninstaller
      >Date: Tue, 6 Jul 2004 21:16:01 -0700
      >Lines: 10
      >Message-ID: <E7962B7A-2D8F-442B-AD8E-E446FD019746@mi crosoft.com>
      >MIME-Version: 1.0
      >Content-Type: text/plain;
      > charset="Utf-8"
      >Content-Transfer-Encoding: 7bit
      >X-Newsreader: Microsoft CDO for Windows 2000
      >Content-Class: urn:content-classes:message
      >Importance: normal
      >Priority: normal
      >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
      >Newsgroups: microsoft.publi c.dotnet.genera l
      >NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 127.0.0.1
      >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG XA01.phx.gbl!TK 2MSFTNGXA03.phx .gbl
      >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:138789
      >X-Tomcat-NG: microsoft.publi c.dotnet.genera l
      >
      >Hello All,
      >
      >I have recently developed a small application with VB.net.
      >What I wish to do is to add an uninstaller to the application that the user can use
      >to uninstall my application instead of having to use the windows control panel.
      >Can someone please show me how to do this iin VB.net?
      >
      >Thanks,
      >
      >Mark
      >[/color]

      ----
      Elizabeth Newman – Visual Basic Deployment Test Team
      This posting is provided "AS IS" with no warranties, and confers no rights.


      Comment

      Working...