Reply to Thread

Post a reply to the thread: Reboot after web update

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 09-17-2010, 10:07 AM
    Unregistered

    Re: Reboot after web update

    Quote Originally Posted by linder View Post
    Friedrich
    Thanks. It works!!!
  • 09-16-2010, 10:14 AM
    linder

    Re: Reboot after web update

    Hello,

    Just add a "Run Program..." function to the end of your script and you are done

    See attached code snipped from our own original SetupBuilder web update script. It "restarts" the application at the end of the update process. BTW, I would suggest to restart it non-elevated on UAC-aware systems to make the process UAC-compliant.

    Does this help?

    Friedrich
  • 09-16-2010, 09:36 AM
    Unregistered

    Re: Reboot after web update

    Quote Originally Posted by linder View Post
    Andrew,

    wupdate.exe does not require a machine reboot . wupdate.exe (the web update client) checks if an update is available. If this is the case, it downloads and executes your "web update installer package". This package seems to update files that are "in-use" (locked) and so Windows requires a reboot to complete the install.

    I would suggest to make sure that the application to be updated is not active (in-use). There are several built-in functions in the installer to handle this. If the update installer package detects that the application is still active, display a message and ask the user to terminate the app.

    Does this help?

    Friedrich
    Thanks. Now situation is clear for me.
    I still couldn't resolve my issue. But now I understand its reasons!
    If update is available I close my app and run cmd

    wupdate /S /Q
    myApp.exe

    wupdate /S /Q - wupdate downloads AppUpdate.exe[web update installer package] and run it(right?). At this moment my application starts too. So AppUpdate.exe try download lock files(my app is running) and widnows make reboot.
    The problem is clear.

    But how can I controle start application after update(After web update installer package update all files, not after download it)
  • 09-16-2010, 09:04 AM
    linder

    Re: Reboot after web update

    BTW, here is an interesting link:

    http://www.lindersoft.com/forums/showthread.php?p=10385

    And if you don't know which file was locked, just check the following:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session Manager

    entry for PendingFileRenameOperation

    There you will find the name of the "locked" file(s).

    If you need more help, just let me know.

    Friedrich
  • 09-16-2010, 09:01 AM
    linder

    Re: Reboot after web update

    Andrew,

    wupdate.exe does not require a machine reboot . wupdate.exe (the web update client) checks if an update is available. If this is the case, it downloads and executes your "web update installer package". This package seems to update files that are "in-use" (locked) and so Windows requires a reboot to complete the install.

    I would suggest to make sure that the application to be updated is not active (in-use). There are several built-in functions in the installer to handle this. If the update installer package detects that the application is still active, display a message and ask the user to terminate the app.

    Does this help?

    Friedrich
  • 09-16-2010, 08:55 AM
    Andrew

    Reboot after web update

    Hello guys. I use web update feature for updatimg my app.
    At every run of my app I use wupdate /C /S
    if update available, I close my app and start bat script

    wupdate /S /Q
    myApp.exe

    update is successfull but my machine reboot after update install.
    Why wupdate /S /Q can be cause machine reboot.
    Thanks

Posting Permissions

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