OnEnd

InstallShield 2016 ยป InstallScript Language Reference

The OnEnd event handler responds to the End event, the last redefinable event in a setup. You can place any required cleanup code in the OnEnd function.

OnEnd is prototyped for you when you include ifx.h or iswi.h in your script. Define OnEnd in your script as in the following example:

#include "iswi.h"

 

function OnEnd( )

    // local variables

begin

    // cleanup code

end;

Code in this event handler is always executed, even during a maintenance setup, unless you place it inside the following if-then structure:

  if !MAINTENANCE then

       \\ non-maintenance code

   endif;