Launch application after setup is complete

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

    Launch application after setup is complete

    I created a CustomAction for this but I don't think I have it in the right
    place. I tried both Install and Commit but neither allow it to get to the
    final screen.

    Are there any examples of this anywhere?

    Thanks,
    Joe


  • ABCL

    #2
    Re: Launch application after setup is complete

    Create Custom Action,
    in Install, add primary output of the application( that you want to
    launch after setup is complete) .
    Right click on it and Set property "Installer --> false" in Property
    window.
    This will launch your application
    I hope I will work

    Parul

    Comment

    • Joe

      #3
      Re: Launch application after setup is complete

      Parul,

      I don't get it...

      I go to Custom Actions and right click on Install and choose to Add Custom
      Action
      I select the dll that has my custom action. I have a method called
      LaunchApplicati on in this dll.
      I go to the properties for this new action and set:
      Condition mycheckboxVaria ble
      CustomActionDat a /appName = [TARGETDIR]\myappname.exe
      EntryPoint LaunchApplicati on
      InstallerClass false


      This way the installer complains it can't find the entry point. My class
      inherits from Installer.

      If I add my exe as the Custom Action how does the installer know what to do?
      Also, I didn't see any Installer property. I only see an InstallerClass one.

      -Joe

      "ABCL" <ohmp05@hotmail .com> wrote in message
      news:1134848484 .854941.35860@g 49g2000cwa.goog legroups.com...[color=blue]
      > Create Custom Action,
      > in Install, add primary output of the application( that you want to
      > launch after setup is complete) .
      > Right click on it and Set property "Installer --> false" in Property
      > window.
      > This will launch your application
      > I hope I will work
      >
      > Parul
      >[/color]


      Comment

      • Steven Cheng[MSFT]

        #4
        Re: Launch application after setup is complete

        Hi Joe,

        As for launching a certain application after the installation completed,
        the VS IDE's setup project dosn't provide direct support on this since VS's
        setup project only expose part of all the windows installer sdk's
        functionality. To do this, the windows installer sdk (within platform sdk)
        provide the Custom Action which help launch a certain program at the end of
        the setup .... Here is the msdn reference on it:

        #Using a Custom Action to Launch an Installed File at the End of the
        Installation
        Learn with interactive lessons and technical documentation, earn professional development hours and certifications, and connect with the community.

        aunch_an_instal led_file_at_the _end_of_the_ins tallation.asp?f rame=true

        Regards,

        Steven Cheng
        Microsoft Online Support

        Get Secure! www.microsoft.com/security
        (This posting is provided "AS IS", with no warranties, and confers no
        rights.)

        --------------------
        | From: "Joe" <jbassking@noem ail.noemail>
        | References: <e2f39EzAGHA.39 76@TK2MSFTNGP09 .phx.gbl>
        <1134848484.854 941.35860@g49g2 000cwa.googlegr oups.com>
        | Subject: Re: Launch application after setup is complete
        | Date: Sun, 18 Dec 2005 15:12:58 -0500
        | Lines: 37
        | X-Priority: 3
        | X-MSMail-Priority: Normal
        | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
        | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
        | X-RFC2646: Format=Flowed; Original
        | Message-ID: <eYckx9ABGHA.20 36@TK2MSFTNGP14 .phx.gbl>
        | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
        | NNTP-Posting-Host: 69.37.58.70.ads l.snet.net 69.37.58.70
        | Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP14.phx. gbl
        | Xref: TK2MSFTNGXA02.p hx.gbl
        microsoft.publi c.dotnet.langua ges.csharp:3726 01
        | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
        |
        | Parul,
        |
        | I don't get it...
        |
        | I go to Custom Actions and right click on Install and choose to Add
        Custom
        | Action
        | I select the dll that has my custom action. I have a method called
        | LaunchApplicati on in this dll.
        | I go to the properties for this new action and set:
        | Condition mycheckboxVaria ble
        | CustomActionDat a /appName = [TARGETDIR]\myappname.exe
        | EntryPoint LaunchApplicati on
        | InstallerClass false
        |
        |
        | This way the installer complains it can't find the entry point. My class
        | inherits from Installer.
        |
        | If I add my exe as the Custom Action how does the installer know what to
        do?
        | Also, I didn't see any Installer property. I only see an InstallerClass
        one.
        |
        | -Joe
        |
        | "ABCL" <ohmp05@hotmail .com> wrote in message
        | news:1134848484 .854941.35860@g 49g2000cwa.goog legroups.com...
        | > Create Custom Action,
        | > in Install, add primary output of the application( that you want to
        | > launch after setup is complete) .
        | > Right click on it and Set property "Installer --> false" in Property
        | > window.
        | > This will launch your application
        | > I hope I will work
        | >
        | > Parul
        | >
        |
        |
        |

        Comment

        • psmukilan
          New Member
          • Mar 2006
          • 3

          #5
          Launch Application immediately after installation

          [QUOTE=ABCL]Create Custom Action,
          in Install, add primary output of the application( that you want to
          launch after setup is complete) .
          Right click on it and Set property "Installer --> false" in Property
          window.
          This will launch your application
          I hope I will work


          Dear Parul,


          how to launch the installed application immediatley after the Finished screen button clicked. Once the user clicks the finished screen "Close" button, i need to launch the installed application. I tried with installer class. Sample code is given below.I have created a class library and within that an installer class. I tried with the afterInstall event, but its not working.

          namespace ClassLibrary1
          {
          [RunInstaller(tr ue)]
          public partial class Installer1 : Installer
          {

          public event InstallEventHan dler AfterInstall;

          public Installer1()
          {
          InitializeCompo nent();
          AfterInstall += new InstallEventHan dler(AfterInsta llEventHandler) ;
          }

          private void AfterInstallEve ntHandler(objec t sender, InstallEventArg s e)
          {
          Process.Start(@ "C:\Program Files\Surisoft\ SampleSetup\Sam pleApplication. exe", "/q");
          }
          }
          }

          I have tried with custom action install, i added the primary output for the application but it launches the application before completion of progressbar itself. Please help me to sort out this problem.

          Regards
          Mukilan.P.S

          Comment

          Working...