1)Reasons VBscript is better for custom actions than InstallScript
- Doing so requires the installscript engine while the windows scripting engine is already installed. (for web based installs the bandwidth difference could be significant)
- VBscript is quicker to develop (not within InstallShield, but it is faster to create a .vbs file and run it than to build an installshield project and run it to get to the script)
2)Reasons InstallScript is better for custom actions than VBscript
- Installscript has some functions not available in VBscript
- Installscript has better error handling (try,catch) than VBScript
Would anyone care to expand on this?
Anyone know of performance implications of VBscript vs Installscript?
How about specific limitations of either one?
Todo when using VBscript:
- Where to put the script code
- for simple scripts put it in the custom action
- for bigger scripts put them in binary - binary and in custom action give flexibility in when the custom action is called (can be before the files are copied)
- for persistent scripts use a installed file
- know and use return values - these allow the install to handle errors in your script
- ERROR_SUCCESS = 0
- ERROR_INSTALL_USEREXIT = 1602
- ERROR_INSTALL_FAILURE = 1603
any others?