Custom Code and InstallAnywhere Variables

For information on variables, please see the section on InstallAnywhere variables (see Chapter 4 and Appendix A). Custom code can both get and set InstallAnywhere variables. This ability can be useful in two cases.

  • A project can set InstallAnywhere variables, which can be used as parameters for custom code. For example, if a custom code action is designed to know the directory to which the end-user is installing, use the Set InstallAnywhere Variable action to set PARAM_1 to $USER_ INSTALL_DIR$. Then, in the custom code action, call InstallerProxy. substitute("$PARAM_1$") to determine its value.

  • InstallAnywhere variables may also be used to store return values from custom code actions. These variables can ...

Get InstallAnywhere Tutorial and Reference Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.