Install / Uninstall Applications

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

    Install / Uninstall Applications

    I am deploying a Package having applications developed using VB.NET and
    VS.NET 2003. I am using the Packaging feature provided with the
    VisualStudio. I can use the package to creates shortcuts for all my
    application executables. Now to Uninstall this package I have to make the
    user go to Add/Remove programs everytime. The users are requesting that if
    they can have a uninstall option as part of the application menus... How do
    I provide this?

    Thanks
    VJ


  • Jose Caliente

    #2
    Re: Install / Uninstall Applications

    this is like commiting suicide. You can't delete the program files, from
    inside the application, they are locked
    What you need to do is to trigger the Application Add/Remove Applet (in
    control panel) and then immediately shell out ot the
    program so it can delete the files.

    jc


    "VJ" <vijaybalki@yah oo.com> wrote in message
    news:u8uSOZt3DH A.2612@tk2msftn gp13.phx.gbl...[color=blue]
    > I am deploying a Package having applications developed using VB.NET and
    > VS.NET 2003. I am using the Packaging feature provided with the
    > VisualStudio. I can use the package to creates shortcuts for all my
    > application executables. Now to Uninstall this package I have to make the
    > user go to Add/Remove programs everytime. The users are requesting that if
    > they can have a uninstall option as part of the application menus... How[/color]
    do[color=blue]
    > I provide this?
    >
    > Thanks
    > VJ
    >
    >[/color]


    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: Install / Uninstall Applications

      * "VJ" <vijaybalki@yah oo.com> scripsit:[color=blue]
      > I am deploying a Package having applications developed using VB.NET and
      > VS.NET 2003. I am using the Packaging feature provided with the
      > VisualStudio. I can use the package to creates shortcuts for all my
      > application executables. Now to Uninstall this package I have to make the
      > user go to Add/Remove programs everytime. The users are requesting that if
      > they can have a uninstall option as part of the application menus... How do[/color]

      I /would not/ provide that, even if users like that.
      Installation/Uninstallation should be done via the corresponding control
      panel. I don't understand why users are not able to open this panel...

      --
      Herfried K. Wagner [MVP]
      <http://www.mvps.org/dotnet>

      Comment

      • VJ

        #4
        Re: Install / Uninstall Applications

        Oh Ohh.. no no, sorry I think my question was misleading... I want to
        provide a uninstall option as Part of Application Menu Like below,
        Start -> Programs - MyPackage -> App1
        -> App2
        -> Uninstall My
        Package

        Hope I am clear this time

        VJ

        "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
        news:buhmfh$huf nc$3@ID-208219.news.uni-berlin.de...[color=blue]
        > * "VJ" <vijaybalki@yah oo.com> scripsit:[color=green]
        > > I am deploying a Package having applications developed using VB.NET and
        > > VS.NET 2003. I am using the Packaging feature provided with the
        > > VisualStudio. I can use the package to creates shortcuts for all my
        > > application executables. Now to Uninstall this package I have to make[/color][/color]
        the[color=blue][color=green]
        > > user go to Add/Remove programs everytime. The users are requesting that[/color][/color]
        if[color=blue][color=green]
        > > they can have a uninstall option as part of the application menus... How[/color][/color]
        do[color=blue]
        >
        > I /would not/ provide that, even if users like that.
        > Installation/Uninstallation should be done via the corresponding control
        > panel. I don't understand why users are not able to open this panel...
        >
        > --
        > Herfried K. Wagner [MVP]
        > <http://www.mvps.org/dotnet>[/color]


        Comment

        • VJ

          #5
          Re: Install / Uninstall Applications

          can any one help me with this?

          Oh Ohh.. no no, sorry I think my question was misleading... I want to
          provide a uninstall option as Part of Application Menu Like below,
          Start -> Programs - MyPackage -> App1
          -> App2
          -> Uninstall My
          Package

          Hope I am clear this time

          VJ
          [color=blue]
          > "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
          > news:buhmfh$huf nc$3@ID-208219.news.uni-berlin.de...[color=green]
          > > * "VJ" <vijaybalki@yah oo.com> scripsit:[color=darkred]
          > > > I am deploying a Package having applications developed using VB.NET[/color][/color][/color]
          and[color=blue][color=green][color=darkred]
          > > > VS.NET 2003. I am using the Packaging feature provided with the
          > > > VisualStudio. I can use the package to creates shortcuts for all my
          > > > application executables. Now to Uninstall this package I have to make[/color][/color]
          > the[color=green][color=darkred]
          > > > user go to Add/Remove programs everytime. The users are requesting[/color][/color][/color]
          that[color=blue]
          > if[color=green][color=darkred]
          > > > they can have a uninstall option as part of the application menus...[/color][/color][/color]
          How[color=blue]
          > do[color=green]
          > >
          > > I /would not/ provide that, even if users like that.
          > > Installation/Uninstallation should be done via the corresponding control
          > > panel. I don't understand why users are not able to open this panel...
          > >
          > > --
          > > Herfried K. Wagner [MVP]
          > > <http://www.mvps.org/dotnet>[/color]
          >
          >[/color]


          Comment

          • Herfried K. Wagner [MVP]

            #6
            Re: Install / Uninstall Applications

            * "VJ" <vijaybalki@yah oo.com> scripsit:[color=blue]
            > can any one help me with this?
            >
            > Oh Ohh.. no no, sorry I think my question was misleading... I want to
            > provide a uninstall option as Part of Application Menu Like below,
            > Start -> Programs - MyPackage -> App1
            > -> App2
            > -> Uninstall My[/color]

            That's how I understood it...

            --
            Herfried K. Wagner [MVP]
            <http://www.mvps.org/dotnet>

            Comment

            • Patrick Pirtle

              #7
              Re: Install / Uninstall Applications

              Herfried -

              As a new programmer, I'd like to ask for some clarification
              on the pros/cons of providing an app-specific uninstall versus
              using Control Panel. Are there things happening "behind the
              scenes" with CP? Or, is it to maintain a consistent method
              cross-application? TIA

              VJ wrote:[color=blue]
              > can any one help me with this?
              >
              > Oh Ohh.. no no, sorry I think my question was misleading... I want[/color]
              to[color=blue]
              > provide a uninstall option as Part of Application Menu Like below,
              > Start -> Programs - MyPackage -> App1
              > -> App2
              > ->[/color]
              Uninstall[color=blue]
              > My Package
              >
              > Hope I am clear this time
              >
              > VJ
              >[color=green]
              >> "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in
              >> message news:buhmfh$huf nc$3@ID-208219.news.uni-berlin.de...[color=darkred]
              >>> * "VJ" <vijaybalki@yah oo.com> scripsit:[/color][/color][/color]
              [snip][color=blue][color=green][color=darkred]
              >>> Installation/Uninstallation should be done via the corresponding
              >>> control panel.[/color][/color][/color]
              [snip]


              Comment

              • Herfried K. Wagner [MVP]

                #8
                Re: Install / Uninstall Applications

                * "Patrick Pirtle" <pap at skilling dot com> scripsit:[color=blue]
                > As a new programmer, I'd like to ask for some clarification
                > on the pros/cons of providing an app-specific uninstall versus
                > using Control Panel. Are there things happening "behind the
                > scenes" with CP? Or, is it to maintain a consistent method
                > cross-application? TIA[/color]

                IMO it's recommended to avoid such a shortcut for consistency between
                all applications /and/ to make installing/uninstalling applications
                easier by providing one central place for installing/uninstalling.

                --
                Herfried K. Wagner [MVP]
                <http://www.mvps.org/dotnet>

                Comment

                • Patrick Pirtle

                  #9
                  Re: Install / Uninstall Applications

                  Consistency is a GOOD thing. Thanks for your
                  advice.

                  Herfried K. Wagner [MVP] wrote:[color=blue]
                  > * "Patrick Pirtle" <pap at skilling dot com> scripsit:[color=green]
                  >> As a new programmer, I'd like to ask for some clarification
                  >> on the pros/cons of providing an app-specific uninstall versus
                  >> using Control Panel. Are there things happening "behind the
                  >> scenes" with CP? Or, is it to maintain a consistent method
                  >> cross-application? TIA[/color]
                  >
                  > IMO it's recommended to avoid such a shortcut for consistency[/color]
                  between[color=blue]
                  > all applications /and/ to make installing/uninstalling applications
                  > easier by providing one central place for installing/uninstalling.[/color]


                  Comment

                  • David Guyer [MS]

                    #10
                    RE: Install / Uninstall Applications

                    Arguments of consistency of discovery aside, if you still want the
                    Uninstall in your Start menu, then here are some steps you can use to make
                    it work...
                    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"

                    That should do it.

                    This will uninstall the applicatoin using the same mechanism as Add/Remove
                    programs
                    ---
                    David Guyer - VBQA Deployment Testing
                    This posting is provided "AS IS" with no warranties, and confers no rights.
                    --------------------[color=blue]
                    >From: "VJ" <vijaybalki@yah oo.com>
                    >Subject: Install / Uninstall Applications
                    >Date: Mon, 19 Jan 2004 15:48:10 -0600
                    >Lines: 12
                    >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: <u8uSOZt3DHA.26 12@tk2msftngp13 .phx.gbl>
                    >Newsgroups: microsoft.publi c.dotnet.langua ges.vb
                    >NNTP-Posting-Host: adsl-68-90-217-174.dsl.rcsntx. swbell.net 68.90.217.174
                    >Path:[/color]
                    cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!TK2 MSFTNGP08.phx.g bl!tk2msftngp13 .
                    phx.gbl[color=blue]
                    >Xref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:174269
                    >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
                    >
                    >I am deploying a Package having applications developed using VB.NET and
                    >VS.NET 2003. I am using the Packaging feature provided with the
                    >VisualStudio . I can use the package to creates shortcuts for all my
                    >application executables. Now to Uninstall this package I have to make the
                    >user go to Add/Remove programs everytime. The users are requesting that if
                    >they can have a uninstall option as part of the application menus... How do
                    >I provide this?
                    >
                    >Thanks
                    >VJ
                    >
                    >
                    >[/color]

                    Comment

                    Working...