We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

aframsey
Posts: 1
Joined: Wed Mar 21, 2007 6:25 pm

Attached VBS script issues

I have written a couple of vbs files that are attached to an installation.

One works without any issues. The second works if run standalone, but when run as part of the msi reports "Action start 11:26:45: DeleteOldFilesNFolders.vbs.
Info 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action script error , : Line , Column ,
Action ended 11:26:46: DeleteOldFilesNFolders.vbs. Return value 1."

I've tried isolating the issue without success. Right now the script basically opens and then closes.

I've also had problems with WScript.Quit in the VB Script file. Advanced Installer reports WScript.Quit as an unknown/illegal command which it isn't.

Thanks for your help
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Note that not all objects that are available when the script runs from explorer are available if the script runs from a custom action. For example WScript object is not available in a custom action. If you use in your custom action code like this:

Code: Select all

set WshShell = WScript.CreateObject("WScript.Shell") 
change it with:

Code: Select all

set WshShell = CreateObject("WScript.Shell")
Hope this helps. Let me know if the problem persist.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”