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!

Arthur

Problem with wscript

Hi,
I try to run the following VBS script as a "New installed custom action"

msgbox "Test"
wscript.quit 0

The scipt does in deed start and display "Test"
As soon as I press the ok button, an errormessage shows up and displays the following text:

"A Script required for this install to complete could not be run"

Can anybody help me?
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Probably the object WScript is not recognized by windows installer script engine. Sugestion: put all your code in a function and execute that function.
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Guest

I have found what this error is

Make sure you delete the text "YourFunction" from the Function text box otherwise it tries to actually execute a function called 'YourFunction' !!

Return to “Common Problems”