OnSQLServerInitialize

InstallShield 2019 » InstallScript Language Reference

Project • This information applies to InstallScript projects.

The OnSQLServerInitialize event is called by OnFirstUIBefore to establish any connections necessary for SQL Server support. This function will initialize the SQL Server runtime and attempt to make any necessary SQL Server connections, displaying a login dialog for each one. Parameter nBtn indicates whether NEXT or BACK was the result of the previously displayed dialog. It is for information purposes only.

If you are working on a script that had overridden OnFirstUIBefore when you upgraded to a newer version of InstallShield and your script is not calling OnSQLServerInitialize, then you should add the OnFirstUIBefore code to your script file.

Note • If you want to call a SQL built-in function before the OnSQLServerInitialize event gets called, you need to first call the SQLRTInitialize2 function. This is applicable to all SQL-related functions. To learn more, see Using the SQL Run-Time Functions in InstallScript and InstallScript MSI Projects.