Announcement

Collapse
No announcement yet.

Is there a way to launch again after quit?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is there a way to launch again after quit?

    Is there a way to make an AMS 4 application re-launch again following an application.exit provided certain conditions were met?
    Eric Darling
    eThree Media
    http://www.ethreemedia.com

  • #2
    Re: Is there a way to launch again after quit?

    Yes. If you mean after a reboot, you could make an entry into the Registry (the RunOnce key).

    If you mean without rebooting, then you'll need a second invisible application to act as the "middleman."

    Basically, launch the middleman app before exiting from the main app, and then let it decide (based on whatever criteria you have) whether to re-launch the main app after an appropriate delay.
    --[[ Indigo Rose Software Developer ]]

    Comment


    • #3
      Re: Is there a way to launch again after quit?

      Well, basically, I have an AMS project that installs WMP 9 (as per our thread yesterday). After this installs, I want the application to "restart," so that the new player can initialize as needed for the project to work properly.

      So, that means actually quitting the AMS project, and then having it run again. I'll work on that middleman app idea - I think I know what you're driving at with that...

      Thanks for that idea.
      Eric Darling
      eThree Media
      http://www.ethreemedia.com

      Comment


      • #4
        Re: Is there a way to launch again after quit?

        Can't you just put your main app in the Run Once area of the registry? I think I did that once and it worked FWIW, although I'm not saying that it's a necessarily a *better* way...

        Corey Milner
        Creative Director, Indigo Rose Software

        Comment


        • #5
          Re: Is there a way to launch again after quit?

          Already suggested above. That only works if the system reboots, Corey.
          --[[ Indigo Rose Software Developer ]]

          Comment


          • #6
            Re: Is there a way to lunch again after quit?

            Hmmm, I thought that if you're installing WMP9 on mixed OS machines, i.e. other than XP as per the thread linked to above, a reboot before running WMP9 would be mandatory...

            Corey Milner
            Creative Director, Indigo Rose Software

            Comment


            • #7
              Re: Is there a way to launch again after quit?

              Eric,

              Try this, you should be able to use AMSs File.Execute to run this with the command line parameters of:

              PathToWMP9Setup;;PathToYourAppToRestart

              DON'T use the wait option.

              You might want to put a App.Sleep (1 or 2 seconds) before you exit after shelling.

              rerun.exe

              And Corey, if you can hold back the "What's Happening!" jokes, I'll be amazed

              Comment


              • #8
                Re: Is there a way to launch again after quit?

                You forget, Worm.... Corey doesn't watch TV - although it has never stopped him from drawing analogies, that's true.

                I bet he's tuned in to the Arnold debacle in California right now, though! It might not be on an actual TV set, but somehow I see a little flickering window on his RGB monitor somewhere in Calgary tonight.
                Eric Darling
                eThree Media
                http://www.ethreemedia.com

                Comment


                • #9
                  Re: Is there a way to launch again after quit?

                  I'm not at liberty to share my views on that topic here.

                  Corey Milner
                  Creative Director, Indigo Rose Software

                  Comment


                  • #10
                    Re: Is there a way to launch again after quit?

                    Eric Darling
                    eThree Media
                    http://www.ethreemedia.com

                    Comment

                    Working...
                    X