The following is a general example of authoring an InstallScript wrapper for your installation.
Depending on the installation requirements, there are occasions where checks or modifications to the target machine are needed before the main installation is run. What follows is a simplified version of an InstallScript wrapper where one of two possible installations can be run depending on the OS. Additional changes will be needed depending on the setup’s requirement and more complex changes falls outside of the scope of this article. For installations that need to be run before the main installation, use a setup prerequisite instead.
In a simplified model, an InstallScript installation will run through the OnFirstUIBefore, OnMoveData, and OnFirstUIAfter events during a first time install. As these are not needed as a wrapper, they will be stripped down and custom code will be written to only allow the wrapped installations to run.