Detailprint and PageEx
Hi, I am making an installer script and at one point I want to do some SQL Server functions. I have the script working but I want to display what it is doing into a detail window. Right now it does what it is supposed to but it doesn't display it. I have searched everywhere that I could think of for the answer but I haven't found anything.
Here is my code:
PageEX custom
PageCallBacks custom
PageEXEnd
Function custom
!insertmacro MUI_HEADER_TEXT "Database Installation" " Installing SQL Database"
!insertmacro MUI_INSTALLOPTIONS_SHOW
setoutpath $PLUGINSDIR
detailprint "Loggin on to SQL server $SQLSERVER"
MSSQL_OLEDB::SQL_Logon /NOUNLOAD "$SQLSERVER" "$SQLUSER" "$SQLPASSWORD"
pop $0
${If} $0 == 1
;MessageBox MB_OK|MB_ICONSTOP "SQL Login Failed."
detailprint 'SQL Server Login Failed'
;Quit
${Else}
detailprint 'SQL Server Login Successful.'
${EndIf}
pop $0
detailprint $0
MSSQL_OLEDB::SQL_GetError /NOUNLOAD
Pop $0
DetailPrint $0
Pop $0
DetailPrint $0
MSSQL_OLEDB::SQL_Execute /NOUNLOAD "$SQLQUERY"
Pop $0
DetailPrint $0
Pop $0
DetailPrint $0
MSSQL_OLEDB::SQL_GetError /NOUNLOAD
Pop $0
DetailPrint $0
Pop $0
DetailPrint $0
MSSQL_OLEDB::SQL_Logout
FunctionEnd
Thanks.