View Full Version : VBScript error

08-15-2005, 08:25 AM
Hi all,

I'm trying to run a VBScript in my project,

I suppose the script fails, but I'm not getting any error-message. Is there any way I can se the error?

My script runs fine from a normal prompt.

08-15-2005, 04:50 PM
Is the VBScript custom action scheduled in UI and/or Execute Sequence? If so, you may want to check out this thread (http://community.installshield.com/showthread.php?t=149399). If that does not help, you can try seaching in the forums for other related discussions. The easiest way is to use MsgBox method.

08-16-2005, 01:58 AM
To see the Custom Action (VB) error view temp file.
It will give you the reason for the error.

08-16-2005, 06:01 PM
If you are running your install on Windows 2000 or above, view the Eventlog.

08-17-2005, 07:50 AM
TsungH is correct to say to use MsgBox's. We have typically in the past when using VBScript CA's written a Debug function/CA. We set its condition to run to 0, 1 for when we need to debug it. Throw the 'kitchen sink' in it.

Now, we don't use VBScript any longer due to MS's and Symantec's support or view of it as an malicious script in the install. We switched all our CA's over to WI C Dll's.

The other important item for your debugging is a log file:
msiexec /i yourinstall.msi /l*v c:\log.txt

Examine the log file after running. This will expose any execution flaws.

08-18-2005, 03:30 AM
Hi guys

Thanks for all the replies,

I changed my VBScript to a InstallScript, and used the msgBox method to debug.

08-18-2005, 05:59 AM
Why switch? Unless you are simply more comfortable with InstallScript.

Just for clarification, we did mean for you to use the MsgBox function built into VBScript.

08-19-2005, 06:46 AM
I don't think I'm comfortable with any of the two... :)

But I got it to work with InstallScript, and that's fine with me...