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!

pgb
Posts: 4
Joined: Wed Aug 19, 2015 1:26 pm

Return value from custom action (vbscript)

Hi,
I wanted to return a value from vbscript so that I can abort or continue installation process.
I tried 'return' but it seems vbscript doesn't work this way. Please suggest how to proceed.

Code: Select all

value = Session.property("SOMEPROPERTY")
If value = "0" then
	' return success (Continue installation)
Else
	' return failure (Abort installation)
End If
Thanks!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Return value from custom action (vbscript)

Hello and welcome to Advanced Installer forums,

For more information regarding custom action return codes please see: You can also take a look on the Exit installer if same version is found forum thread which debates a similar subject.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pgb
Posts: 4
Joined: Wed Aug 19, 2015 1:26 pm

Re: Return value from custom action (vbscript)

Hi Dan,
Thanks for reply. I realized that inline script doesn't have option to specify function name. Hence unable to return a custom value.
So I decided to run attached script and it worked. I have another question that I will ask separately.

Thanks.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Return value from custom action (vbscript)

You're welcome,

If you have other questions, please let us know.

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

Return to “Common Problems”