Announcement

Collapse
No announcement yet.

Setup factory & automatic reboot...

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

  • Setup factory & automatic reboot...

    Hi !

    During installation - in installation log I see following entry:

    [01/14/2021 14:58:31] Notice File in use (delete): C:\Program Files\myapp\file.png
    [01/14/2021 14:58:31] Success Install archive file on reboot: C:\Program Files\myapp\file.png (Source = C:\Program Files\myapp\suf26E8.tmp)

    Will this cause Windows to reboot if installation runs silently (/S) parameter - and does reboot happens automatically by setup factory ?

    Is there any way to control whether reboot happen / will not happen automatically ?


  • #2
    This will set the global variable _NeedsReboot, and on a non-silent install the option to reboot the computer would be shown. On a silent install, the reboot will be performed automatically, as the option cannot be displayed.

    If you want to avoid the automatic reboot, you need to reset the _NeedsReboot variable before executing g_HandleSystemReboot() in the On Shutdown event script.

    Ulrich

    Comment


    • #3
      I've tested and in case of uninstall - it's still possible to have sharing violation/lock on some file, and uninstall does not succeeds.

      But running uninstall with /S option does not perform windows reboot - is that true ?

      Comment


      • #4
        You are welcome.

        In case of silent uninstalls, I do not see that Setup Factory triggers an unwanted system reboot, although it certainly would not hurt to make sure again that the global variable is not set before reaching g_HandleSystemReboot().

        Ulrich

        Comment


        • #5
          Ok, thanks !

          Comment

          Working...
          X