trankyfunky
15th January 2003 10:52 UTC
status message
I need my installer to pop up a "success" message window that closes automatically after some time (~1 sec).
The installer maybe unattended, so i need the "autoclose" feature because the installer would'n close if nobody clicks the "Ok" button...
Any suggestions ?
virtlink
15th January 2003 11:32 UTC
Maybe someone could write a plugin where you push the message, title, icon, buttons and timeout, and pop the result (if any).
kichik
15th January 2003 14:39 UTC
[edit]Oops, didn't notice the message box part... If you insist on a message box you will have to use a plugin, otherwise you can print success using DetailPrint and use my method.[/edit]
No need for any plugins. Use SetAutoClose or AutoCloseWindow to automatically close the window. Before the window closes completely .onInstFailed or .onInstSuccess is called, in there you can use Sleep 1000 to wait one second.
virtlink
15th January 2003 16:13 UTC
Plugins in Visual Basic
Is there a way to write NSIS plugins in Visual Basic? I think that it would please a lot of Visual Basic programmers and a lot of people who need plugins, but I don't think it's possible.
kichik
15th January 2003 16:15 UTC
AFAIK there is no way to create normal DLLs using VB, but I am not an expert of VB so I can't be sure...
trankyfunky
17th January 2003 07:19 UTC
yep! I've found that the code
Banner::show /NOUNLOAD "Installation completed!"
Sleep 2500
Banner::destroy
does exactly what I need, except for the "ok" button.
No matter.
But now I've found that the message seems to have some lenght limitations...
kichik
17th January 2003 11:52 UTC
Yes, the message is limited by the dialog that is created in. You can change the UI if you want to a UI that has more space in dialog 111.