Archive: Custom Page refreshes slow


Custom Page refreshes slow
I got an interesting one for you. I am running a sql script that query's a record in a table located by default in the master database. I pop the response back to see if it was successful. This is used to verify that SQL is install and running. (This does work well for me but If anyone knows a better way to do this please inform). The sa password and sql server name is retrieved from the user using a custom page. Once the user leaves that page the sql script is ran using a function called componentsLeave:

-------------------------------------
nsExec::ExecToStack "$SYSDIR\cmd.exe /c osql.exe /c -U $SqlUser -P $SqlPass -S $SQLSVR -i \ $PLUGINSDIR\SqlTest.sql"

Pop $0

${If} $0 = 1

MessageBox MB_OK "Unable to connect to SQL Server. Please check the username and$\npassword, or \ verify that SQL Server is working properly."

abort
${EndIf}
---------------------------------------------------

The problem is that the page seems to freeze or become stuck for sometimes up to a minute. If the user clicks away from the installer and then clicks agian on the installer, the page refreshes faster. Kind of weird. Any ideas?


Nope. You can display a banner though with the Banner plugin.

-Stu


I tried MXSBanner but doesn't seem to work in a function. When you destroy the banner it crashes the installer. EBanner seems to be for images(which i want to avoid using)and is for use in a section. Any suggestion on displaying a message(no buttons) in a the componentsLeave function thats run after the user clicks next.


The standard Banner plugin is included with NSIS.

-Stu


your right, im srry. That documentation is hard to locate sometimes :). thank you