MessageBeep Example

InstallShield 2019 ยป InstallScript Language Reference

To call this function in a Basic MSI setup, you must first create a custom action for the entry-point function, execute the custom action in a sequence or as the result of a dialog's control event, and then build the release.

/*--------------------------------------------------------------*\

*

* InstallShield Example Script

*

* Demonstrates the MessageBeep function.

*

\*--------------------------------------------------------------*/

 

// Include Ifx.h for built-in InstallScript function prototypes.

#include "Ifx.h"

 

export prototype ExFn_MessageBeep(HWND);

 

function ExFn_MessageBeep(hMSI)

begin

 

    // Play the default system sound.

    MessageBeep (0);

    

    // Display a message box.

    MessageBox ("Please listen for a sound.", INFORMATION);

    

    // Play the default system sound.

    MessageBeep (0);

 

end;