Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2011
    Posts
    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

  2. #2
    Join Date
    Apr 2005
    Location
    Tabo„o da Serra
    Posts
    3,581
    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

  3. #3
    Join Date
    Nov 2011
    Posts
    6
    Ok. Where I have to call this? In the client script or inside the server script?

  4. #4
    Join Date
    Apr 2005
    Location
    Tabo„o da Serra
    Posts
    3,581
    These tasks would be performed in the Server script, only after you know that a new version is available.

    Ulrich

  5. #5
    Join Date
    Nov 2011
    Posts
    6
    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

  6. #6
    Join Date
    Nov 2011
    Posts
    6
    Ok, after debug I found out that it is SR_LISTCOMPLETE. Maybe a SR_FINISH is a suggestion.

    Ingo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts