\
Source Code
VBSCRIPT
Custom Action Functions
CaSleep()
This optional function can be used in any generated vbscript custom actions. It can be included or excluded (to save space if not required).
It is excluded by default, to changes this: - Set the default value to "Y" or "N" on "VBSCA_WANT_CaSleep".
- Use the "Optcode" parameter on a custom action to override on individual custom actions.
- Redefine the default value for the custom action's "OptCode" parameter (probably in a common header file).
This routine will pause a script for approximately the
specified number of seconds.
A WSH script can use "wscript.sleep" to do this but unfortunately
Microsoft forgot to add "wait" functionality to the Windows Installer engine.
You may pass these parameters:
- An integer which represents the delay in seconds.