SQL Connections - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Cymon Skinner
Posts: 5
Joined: Tue Jan 29, 2013 9:49 pm

SQL Connections

Hi, I have a asp.net application the I wish to distribute, with a SQL database. My scripts are working when I run them against a SQL server. My question is how to run this effectively in the Advanced Installer. First do I use a 'Predefined Connection' collecting the info with the variables [DBSERVER_PROP] , [DATABASE_PROP] etc. or do I use a 'Custom Connection' with a string like Driver=[\{][DBDRIVER_PROP][\}];Server=[DBSERVER_PROP];Port=[PORT_PROP];Database=[DATABASE_PROP];[SQL_AUTHORIZATION].

In addition I need to be able to use a Windows Trusted Connection or SQL Server logon that is a domain user for the SQL to connect to the SQL Server and NOT an SA account.
Just trying to get my head around the learning curve within Advanced Installer

MSI (s) (14:E8) [14:45:48:383]: Executing op: RegOpenKey(Root=-1,Key=******************,,BinaryType=0,,)
MSI (s) (14:E8) [14:45:48:410]: Executing op: RegAddValue(Name=SQL Port,Value=1433,)
WriteRegistryValues: Key: \Software\Nubigenus\DataBase, Name: SQL Port, Value: 1433
MSI (s) (14:E8) [14:45:48:452]: Executing op: RegAddValue(Name=DataBase Name,Value=testdb_delete_me,)
WriteRegistryValues: Key: \Software\Nubigenus\DataBase, Name: DataBase Name, Value: testdb_delete_me
MSI (s) (14:E8) [14:45:48:493]: Executing op: RegAddValue(Name=DataBase Server,Value=sql-ph-01,)
WriteRegistryValues: Key: \Software\Nubigenus\DataBase, Name: DataBase Server, Value: sql-ph-01
MSI (s) (14:E8) [14:45:48:534]: Executing op: ActionStart(Name=AI_XmlRollback,Description=Rolling back XML file configurations.,Template=Rolling back XML file configurations.)
Action 14:45:48: AI_XmlRollback. Rolling back XML file configurations.
MSI (s) (14:E8) [14:45:48:577]: Executing op: CustomActionSchedule(Action=AI_XmlRollback,ActionType=11521,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (14:E8) [14:45:48:596]: Executing op: ActionStart(Name=AI_XmlCommit,Description=Committing XML file configurations.,Template=Committing XML file configurations.)
Action 14:45:48: AI_XmlCommit. Committing XML file configurations.
MSI (s) (14:E8) [14:45:48:646]: Executing op: CustomActionSchedule(Action=AI_XmlCommit,ActionType=11777,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (14:E8) [14:45:48:675]: Executing op: ActionStart(Name=AI_XmlConfig,Description=Executing XML file configurations,Template=Configuring XML file: "[1]")
Action 14:45:48: AI_XmlConfig. Executing XML file configurations
MSI (s) (14:E8) [14:45:48:716]: Executing op: CustomActionSchedule(Action=AI_XmlConfig,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (14:CC) [14:45:48:771]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI55BF.tmp, Entrypoint: OnXmlConfig
AI_XmlConfig: Configuring XML file: "C:\Program Files\***********\regid.2012-09.com.*********** Portal.swidtag"
AI_XmlConfig: Configuring XML file: "C:\ProgramData\regid.2012-09.com.*******\regid.2012-09.com.*************.swidtag"
MSI (s) (14:E8) [14:45:48:909]: Executing op: ActionStart(Name=InstallODBC,Description=Installing ODBC components,)
Action 14:45:48: InstallODBC. Installing ODBC components
MSI (s) (14:E8) [14:45:48:963]: Executing op: ODBCInstallDriver64(DriverKey=SQL Server,Component={865E74F6-9A52-4FEF-A3F4-46DCC3E52168},Folder=C:\Windows\system32\,Attribute_=Driver,Value_=odbc32.dll)
1: SQL Server 2: {865E74F6-9A52-4FEF-A3F4-46DCC3E52168} 3: C:\Windows\system32\ 4: Driver 5: odbc32.dll
MSI (s) (14:E8) [14:45:49:009]: LocalSQLInstallDriverEx returned 1 in local context.
MSI (s) (14:E8) [14:45:49:032]: LocalSQLConfigDriver returned 1 in local context.
MSI (s) (14:E8) [14:45:49:052]: Executing op: ActionStart(Name=AI_SqlRollback,Description=Executing rollback SQL scripts,Template=Connection: [1] Script: [2])
Action 14:45:49: AI_SqlRollback. Executing rollback SQL scripts
MSI (s) (14:E8) [14:45:49:103]: Executing op: CustomActionSchedule(Action=AI_SqlRollback,ActionType=11521,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (14:E8) [14:45:49:123]: Executing op: ActionStart(Name=AI_SqlConfig,Description=Executing install SQL scripts,Template=Connection: [1] Script: [2])
Action 14:45:49: AI_SqlConfig. Executing install SQL scripts
MSI (s) (14:E8) [14:45:49:164]: Executing op: CustomActionSchedule(Action=AI_SqlConfig,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (14:68) [14:45:49:215]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI5785.tmp, Entrypoint: OnSqlConfig
Last edited by Cymon Skinner on Wed Jan 30, 2013 7:58 pm, edited 1 time in total.
Cymon Skinner
Posts: 5
Joined: Tue Jan 29, 2013 9:49 pm

Re: SQL Connections

Got it!. No need to reply to this one

Return to “Common Problems”