instTst
Level 4

Get SQL variables from OnSQLServerInitialize();

Hi,

I'm making an installer that will deploy a sql database and also initialize a service under the same credentials used for deploying the sql database. From what I understand, this line is what initializes the sql runtime and opens the prompt:

Dlg_SQLServer:
nResult = OnSQLServerInitialize( nResult );
if( nResult = BACK ) goto Dlg_SdFeatureTree;

How can I grab the username, password and connection string? Does anybody know?

Regards,

J
Labels (1)
0 Kudos
2 Replies
hidenori
Level 17

Look at the implementation of OnSQLServerInitialize InstallScript event by selecting the Before Move Data | OnSQLServerInitialize from the dropdown upper the InstallScript editor.
0 Kudos
instTst
Level 4

Thanks! Got it working.
0 Kudos