Menu

#136 Consider using 'timeout' to replace 'pause' in windows lauch/service install/uninstall scripts

Next_Release
accepted
None
4
2020-12-02
2017-12-04
Bin Yi
No

The problem is we are using the launch/service in/uninstall scripts (by modified from InstallTestWrapper-NT.bat, etc.) in an automation. But if some steps failed (for example trying to remove service which is not installed yet), the script will blocked at the 'pause' statement.

Since we don't want modify the script lower than rem Do not modify anything beyond this point (which may cause problem when upgrading to newer version of wrapper), is that possible to change the 'pause' to a 'timeout' with a customized or reasonable value?

Discussion

  • Leif Mortenson

    Leif Mortenson - 2020-12-02
    • status: open --> accepted
    • assigned_to: Leif Mortenson
     
  • Leif Mortenson

    Leif Mortenson - 2020-12-02

    Sorry for the delay. This has been added for the 3.5.45 release.
    See the following configuration at the top of all bat files.

    rem If there are any errors, the script will pause for a specific number of seconds
    rem  or until the user presses a key. (0 not to wait, negative to wait forever).
    set _WRAPPER_TIMEOUT=-1
    
     

Log in to post a comment.