a.guelle
Posts: 97
Joined: Tue May 19, 2015 2:23 pm

Sending return Code from VBS inline code

Tue Oct 27, 2015 5:59 pm

Hi AI-team,

How can I send a return code from an inline VBS action to provoke a rollback?

I know there are some MSI return codes, but I have no idea how to return them from an inline action.

Best regards,
Angelo

Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Sending return Code from VBS inline code

Wed Oct 28, 2015 9:34 am

Hi Angelo,

Our "Execute inline script code" custom action is the equivalent of the Windows Installer "Type 38" predefined custom action and this custom action always returns success. Our "Launch attached file" custom action (when targeting a VBS file) is the equivalent of the Windows Installer "Type 6" custom action and this custom action can return any of the values exposed in "Return Values of JScript and VBScript Custom Actions" article.

Starting with an "Enterprise" project type or higher you can verify the type of your custom actions added in "Custom Actions" page by checking the "Table Editor page -> CustomAction table -> Type column". Also, please take a look on the "Custom Action Types" article.

Please use the approach exposed in our "Exit installer if same version is found" thread which debates a similar issue.

If you have any questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”