Adding more than 2 Execute VBScript actions causes the EXE to crash

Article:TECH26291  |  Created: 2007-02-09  |  Updated: 2008-04-24  |  Article URL http://www.symantec.com/docs/TECH26291
NOTE: If you are experiencing this particular known issue, we recommend that you Subscribe to receive email notification each time this article is updated. Subscribers will be the first to learn about any releases, status changes, workarounds or decisions made.
Article Type
Technical Solution


Issue



Steps to duplicate:
1. Create a new script in WiseScript Package Editor.
2. Add 3 Execute VBScript actions.
3. Compile and run the EXE. 
4. It will crash after the 3rd VBScript executes.

The EXE does not crash if only 2 VBScript actions are included.


Environment



WPS 7 SP2
WIS 7.0
WiseScript Package Editor


Solution



This issue has been fixed for Wise Installation Studio\Express 7 SP1 and Wise Package Studio 7 SP3. 

Workaround: Instead of using the Execute VBScript action, use the Execute Program action to call wscript.exe.

1. Add an InstallFiles action to install the VBScript to a temporary location
2. Add an Execute Program Action with the following settings:
    .EXE Path: %SYS%\wscript.exe
    Command Line: "<Path to VBScript installed in Step1>
    Mark the 'Wait for Program to Exit' checkbox
    The other fields can be left blank

Supplemental Materials

SourceDEFECT
ValueLB 56634
DescriptionLogged in Littlebuggy (Altiris - Lindon, Plymouth) database

Legacy ID



32656


Article URL http://www.symantec.com/docs/TECH26291


Terms of use for this information are found in Legal Notices