I succesfully be able to create the instance with a batch file executed as a feature based prerequisite and in the custom action after "PublishFeatures" i created my action with the sql script attached.
The problem that i have is with connection to the database to execute the script.
Having this situation: MS SQL Server - ODBC Driver - ODBC Driver 17 for SQL Server

i both tried with a custom ODBC driver that is just "APPDIR\msodbcsql17.dll" file but the connection always fail and also the local "ODBC Driver 17 for SQL Server" and the generic "SQL Server" with the same results.
To test it (i'm testing in the UI of the program) i used a newly created local database comparing simple query execution (with the intent to check the connection) with SQL Management Studio. In SQLMGMS the connection works (Trusted conn and Uid:sa) but with AdvancedInstaller works only the Trusted conn while trying to connect as 'sa' with password the request remains pending.
Also, I wanted to point out two issue (i suppose):
- When the request is pending: if i don't touch anything the windows ends itself with the messagebox "ODBC connection: timout exceded" otherwise if i click the window the ODBC dialog enter the not responding phase and then the result window shows up empty with no result.
-I'm wondering if the "Test" button works both selecting the "DlgPredefinedConnection" item as in the image or only selecting the query as i can certify happens in my env. If so would be great if you disable in the first case.
W10, AI Version 17.2 (3F88558F)
FOLLOW US
Get the latest news in Application Packaging