Restart updated software

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Pixbyte
    Forum Member
    • Nov 2011
    • 6

    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
  • Ulrich
    Indigo Rose Staff Member
    • Apr 2005
    • 5103

    #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

    • Pixbyte
      Forum Member
      • Nov 2011
      • 6

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

      Comment

      • Ulrich
        Indigo Rose Staff Member
        • Apr 2005
        • 5103

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

        Ulrich

        Comment

        • Pixbyte
          Forum Member
          • Nov 2011
          • 6

          #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

          • Pixbyte
            Forum Member
            • Nov 2011
            • 6

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

            Ingo

            Comment

            Working...
            X