\
Source Code
VBSCRIPT
Custom Action Functions
CaDeleteFile()
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 included by default, to changes this: - Set the default value to "Y" or "N" on "VBSCA_WANT_CaDeleteFile".
- 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 delete a file if it exists.
An exception is generated if the file can't be removed.
You may pass these parameters:
- The name of the file.