InstallAware for Windows Installer
 

Return from Include Script

This command returns from an included script back to the invoking Include Script command. It is only legal when called within the context of an included script.

Result

If you would like to return a result from your script, enter that result here (variables are allowed and will be resolved before return).

 Notes

  • This command, when used in tandem with the Include Script command, in effect allows you to create your own MSIcode functions - with the only exception to generic function-like usage being the lack of support for recursive use.
  • While being more flexible than constructs such as Labels and GoTo Label which have strict limitations on their use, remember that include scripts are still not separate program segments like functions with their own stack, local scope, and variables, instead being direct includes of commands (much like include files in the C++ programming language).
  • This command does properly preserve MSIcode script execution states across returns. Any loops, branching constructs, and conditional statements evaluate properly after returning from an included script - which is not possible with less flexible flow control constructs.