How do I add an Uninstall icon off the start menu in .Net?

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

    #1

    How do I add an Uninstall icon off the start menu in .Net?

    How do I add an Uninstall icon off the start menu using Visual Studio .Net
    Deployment project?

    You can add a folder, project output, file or assembly or create a shortcut.
    None of these seem to heading in the right direction. I have considered
    adding a shortcut to something like "msiexec /x [MSINAME]" or similiar but
    to do this I created a shortcut to an uninstall icon (?!) that I previous
    added to the project and then attempted to change its target property.
    Unfortunately you can then only select a file from within the project and
    cannot specify ad-hoc text.

    There seems to be nothing in the Help about this.

    Thanks in advance.

    Regards
    Dave A


  • Nasser

    #2
    How do I add an Uninstall icon off the start menu in .Net?

    Good question... I must spend some time experimenting
    with this... but a couple of points...

    1) should we educate the users to accomplish
    uninstallation via control panel?

    2) having said that, your posting seems to have the
    answer in it.... how about getting the shortcut to point
    to a .bat file or a .exe file with in effect does the

    msiexec /x [MSINAME]

    would that work?

    Thanks
    Nasser

    [color=blue]
    >-----Original Message-----
    >How do I add an Uninstall icon off the start menu using[/color]
    Visual Studio .Net[color=blue]
    >Deployment project?
    >
    >You can add a folder, project output, file or assembly[/color]
    or create a shortcut.[color=blue]
    >None of these seem to heading in the right direction.[/color]
    I have considered[color=blue]
    >adding a shortcut to something like "msiexec /x[/color]
    [MSINAME]" or similiar but[color=blue]
    >to do this I created a shortcut to an uninstall icon[/color]
    (?!) that I previous[color=blue]
    >added to the project and then attempted to change its[/color]
    target property.[color=blue]
    >Unfortunatel y you can then only select a file from[/color]
    within the project and[color=blue]
    >cannot specify ad-hoc text.
    >
    >There seems to be nothing in the Help about this.
    >
    >Thanks in advance.
    >
    >Regards
    >Dave A
    >
    >
    >.
    >[/color]

    Comment

    • Dave A

      #3
      Re: How do I add an Uninstall icon off the start menu in .Net?

      I received the answer from the other news group that I cross posted to. I
      have included it below for all others who will walk in my footsteps...

      ----

      Hi Dave,

      Thanks for posting.

      I am thinking about the following:

      1. Create a "Uninstall. bat" and include the following line:

      msiexec /x {your product code}

      (Replace the "your product code" with your product code GUID.)

      2. Add the BAT file to your application folder.

      3. Add a shortcut that points to the BAT file.

      4. Set the "ShowCmd" property of the shortcut to "vsdscMinimized ".

      Will it be acceptable? Please feel free to post here.

      Regards,

      Felix Wang
      Microsoft Online Partner Support
      Get Secure! - www.microsoft.com/security
      This posting is provided "as is" with no warranties and confers no rights.



      "Nasser" <anonymous@disc ussions.microso ft.com> wrote in message
      news:031001c3b7 a7$e0281310$a10 1280a@phx.gbl.. .[color=blue]
      > Good question... I must spend some time experimenting
      > with this... but a couple of points...
      >
      > 1) should we educate the users to accomplish
      > uninstallation via control panel?
      >
      > 2) having said that, your posting seems to have the
      > answer in it.... how about getting the shortcut to point
      > to a .bat file or a .exe file with in effect does the
      >
      > msiexec /x [MSINAME]
      >
      > would that work?
      >
      > Thanks
      > Nasser
      >
      >[color=green]
      > >-----Original Message-----
      > >How do I add an Uninstall icon off the start menu using[/color]
      > Visual Studio .Net[color=green]
      > >Deployment project?
      > >
      > >You can add a folder, project output, file or assembly[/color]
      > or create a shortcut.[color=green]
      > >None of these seem to heading in the right direction.[/color]
      > I have considered[color=green]
      > >adding a shortcut to something like "msiexec /x[/color]
      > [MSINAME]" or similiar but[color=green]
      > >to do this I created a shortcut to an uninstall icon[/color]
      > (?!) that I previous[color=green]
      > >added to the project and then attempted to change its[/color]
      > target property.[color=green]
      > >Unfortunatel y you can then only select a file from[/color]
      > within the project and[color=green]
      > >cannot specify ad-hoc text.
      > >
      > >There seems to be nothing in the Help about this.
      > >
      > >Thanks in advance.
      > >
      > >Regards
      > >Dave A
      > >
      > >
      > >.
      > >[/color][/color]


      Comment

      Working...