Hello!
I have the current problem at hand.
I have a nicely working installer with several custom pages, mostly to configure some services we install.
I have a page that has fields that can be filled out that we will use to create a database connection. (The full connection string is assembled by a powershell script)
I would like to have a button on the page (this part is done) and have it's OnClick function check if the data that was filled in can make a successful connection to the database.
Function OnClick
MSSQL_OLEDB::SQL_Logon "servername\sqlexpress" "username" "password"
Pop $0
MessageBox MB_OK|MB_ICONSTOP "You clicked me and the result was $0" /SD IDOK
FunctionEnd
According to the plugins' very miniscule documentation I always get the error code, 1
I'm not sure what I'm doing wrong.
Is it not compatible? I have 2019 SQL Express server installed
It's configured for mixed authentication (windows/sql server), I tried both in the installer, always get the error code 1.
Any tips?
I have the current problem at hand.
I have a nicely working installer with several custom pages, mostly to configure some services we install.
I have a page that has fields that can be filled out that we will use to create a database connection. (The full connection string is assembled by a powershell script)
I would like to have a button on the page (this part is done) and have it's OnClick function check if the data that was filled in can make a successful connection to the database.
Function OnClick
MSSQL_OLEDB::SQL_Logon "servername\sqlexpress" "username" "password"
Pop $0
MessageBox MB_OK|MB_ICONSTOP "You clicked me and the result was $0" /SD IDOK
FunctionEnd
According to the plugins' very miniscule documentation I always get the error code, 1
I'm not sure what I'm doing wrong.
Is it not compatible? I have 2019 SQL Express server installed
It's configured for mixed authentication (windows/sql server), I tried both in the installer, always get the error code 1.
Any tips?
Comment