Andromo - Start Making Apps - Free Signup

Announcement

Collapse

New Forum Software

If you're here, you've found the new home for our forums. There will be some bugs to iron out, so thanks for your patience...
See more
See less

Restart updated software

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

  • Restart updated software

    Hi,
    any idea how to start the updated software after the update is done? Best chocie without the UAC of tha updater (no admin).
    Ingo

  • #2
    See if the software is running before starting the update and end the process if necessary, update the binary, then use Shell.Execute() to start the updated program...

    Ulrich

    Comment


    • #3
      Ok. Where I have to call this? In the client script or inside the server script?

      Comment


      • #4
        These tasks would be performed in the Server script, only after you know that a new version is available.

        Ulrich

        Comment


        • #5
          Hi. OK I use following code:

          -- Tell the user that the update process is successful
          if(Screen.Show("Update Successful")==SR_SUCCESS) then
          Shell.Execute(g_InstalledFilePath, "open", "", "", SW_SHOWNORMAL);
          end
          But this do not work. Also SR_CANCEL (Close button seems to be a Cancel button) do not work.
          How to now know when updater is ready?

          ingo

          Comment


          • #6
            Ok, after debug I found out that it is SR_LISTCOMPLETE. Maybe a SR_FINISH is a suggestion.

            Ingo

            Comment

            Working...
            X