Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   How to skip welcome page? (http://forums.winamp.com/showthread.php?t=244468)

gattogratto 24th April 2006 13:57

How to skip welcome page?
 
I've tried using an abort as a pre function. It seems to hide the program completely. ANy simple and good way to skip the cancel page?

Red Wine 24th April 2006 15:54

if you mean you don't want it at all, just skip it :-)
#!insertmacro MUI_PAGE_WELCOME
if you mean you want to skip it under some conditions, you should provide an example of what you want to do exactly.

Takhir 24th April 2006 16:07

pre-Abort :)
 
1 Attachment(s)
The best way is not to include page at all, just remove Welcome page macro from your script ;) Abort in the Welcome pre function (not as) works correct, sample attached.

gattogratto 24th April 2006 16:15

Yeah that was pretty dumb of me. I did try not including those pages though. But I had a problem where if I skip/omit the pages prior to the MUI_PAGE_INSTFILES, the program crashes due to some skinning conflict. If I have one page before MUI_PAGE_INSTFILES it is fine. But I can't abort a custom page to get to MUI_PAGE_INSTFILES, it crashes again. If I take out the skinning code that gets set at .onit it works fine too. Any work around to this? I'm going to end up makng a custom page that spawns something that hits okay after like a second or two as a retarded work around. Any other solution would be appreciated.

Afrow UK 24th April 2006 16:29

You should probably call the skinning code in .onGUIInit.

MUI uses .onGUIInit itself, but you can declare your own:

code:
!define MUI_CUSTOMFUNCTION_GUIINIT myGUIInit
!insertmacro MUI_PAGE_...

...

Function myGUIInit
...
FunctionEnd



-Stu

gattogratto 24th April 2006 16:38

Tried that but the skin comes up like missing chunks. It didn't crash though.

Afrow UK 24th April 2006 16:44

What skinning plugin are you using?

-Stu


All times are GMT. The time now is 04:35.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.