Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   abort and installer status (http://forums.winamp.com/showthread.php?t=268069)

ajay662 19th March 2007 20:54

abort and installer status
 
When my script executes "abort" statement, I do get a ".onInstFailed" callback but the status window says "MyApp setup: completed".

Why does it not say "Failed" in this case? How can I make the status say "Failed" when script executes "abort"?

ajay662 20th March 2007 12:12

Any suggestions?

I thought of overwriting CompletedText in ".onInstFailed" function but compiler wouldn't let me set this inside a function, so I guess CompletedText can not be changed dynamically at run time.

Any other thoughts? I just think its confusing for banner to say "My App setup: completed" when it should be "My App setup: failed" when hitting abort statement.

onad 20th March 2007 16:23

Since aborted is not a failure... (it is aborting). To be able to help more it would be good if you describe the goal you would like to achieve in detail.

ajay662 20th March 2007 19:36

Well, abort triggers call back .onInstFailed so I am treating abort=failure. And I am using abort that way in my installer script.

When my script calls abort I want to make it very clear to the user that installer has failed and I thought the best place would be at the caption where it could say "My app setup : failed".


All times are GMT. The time now is 05:48.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.