running a vbs custom action - Advanced Installer Community

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!

rgibson
Posts: 3
Joined: Fri Apr 08, 2011 10:27 pm

running a vbs custom action

I'm new to Advanced Installer (or any installer for that matter) and I'm having a problem. I'm trying to run a vb script file through the custom action but I keep getting an error when I run the install saying "A script required for this install to complete could net be run. Contat your support personnel or package vendor". If I remove the custom action and run the install it works fine. I've tried it as an Attached and Installed Custom Action and Predefined Custom Action to Launch File or URL but get the same error every time.
Can someone tell me where I may be going wrong?

Thanks
Rob
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: running a vbs custom action

Hi Rob and welcome to our forums,

The message you receive is a generic error message raised by Windows Installer when a custom action fails.The simplest solution is to debug your script by placing
calls to "MsgBox" method in it. Adding the custom action as attached should work.

Also, please note that Windows Installer does not support the VBScript object "WScript", here are more details on this subject.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rgibson
Posts: 3
Joined: Fri Apr 08, 2011 10:27 pm

Re: running a vbs custom action

WScript would probably be my problem. I'll check it out this week.

Thanks
Rob
rgibson
Posts: 3
Joined: Fri Apr 08, 2011 10:27 pm

Re: running a vbs custom action

Yes, that was the problem. Instead of ...
Set WshShell = WScript.CreateObject("WScript.Shell")

I used ...
Set WshShell = CreateObject("WScript.Shell")

Thanks!!

Return to “Common Problems”