This article can be implemented starting with Advanced Installer 11.6 and requires no code writing to launch the Updater. Just follow the Using the Updater tutorial and after creating the shortcut for the updater in the Files and Folders Page, type one the following command lines in its "Arguments" field instead of /checknow.
Launch the application first then silently search for updates
/silent -startappfirst -restartapp <application_executable_path> -restartappcmd <application_command_line_params>
<application_executable_path> is the full path to the application executable that will be launched when the user cancels the updates.
<application_command_line_params> are the optional command line parameters which will be passed to the executable.
Launch the application first then search for updates with minimal user interaction ignoring check frequency
/checknow -minuseractions -startappfirst -restartapp <application_executable_path> -restartappcmd <application_command_line_params>
For detailed information about each command line option, please follow Auto Updater article.