Old 18th May 2004, 04:09   #1
Omatase
Junior Member
 
Join Date: May 2004
Posts: 3
Ending the installer in a modern UI

This must be such an easy thing, but I can't find it in the help file or on this message board. Possibly because it's so easy noone has asked it .

Anyway, I am trying to:
1> show a welcome screen using the modern UI <--Working
2> Run a custom function on Welcome_leave <--Working
3> Close the installer<--Not working.

Using the Abort command only prevents the next window from displaying. This is good. I don't want the next window to display. I also want the installer to close though.

Anyway, now that I'm using the modern UI I seem to have no control over when to stop the installer. Can someone please tell me how I can close the installer when the user clicks 'Next'?

Thankyou for your help in advance.
Omatase is offline   Reply With Quote
Old 18th May 2004, 05:25   #2
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
Have you tried the quit command?

Vytautas
Vytautas is offline   Reply With Quote
Old 18th May 2004, 12:34   #3
Omatase
Junior Member
 
Join Date: May 2004
Posts: 3
No sir I had not, but as it happens that command also doesn't produce the desired result. Let me paste the relevant code in case that will be helpful.

!define MUI_PAGE_CUSTOMFUNCTION_LEAVE "WelcomePageLeave"
!insertmacro MUI_PAGE_WELCOME

Function WelcomePageLeave

Call IsDotNETInstalled

Pop $R3

StrCmp $R3 0 +2

MessageBox MB_OK "Framework installed!" ID_OK Done

; else
MessageBox MB_OKCANCEL "The Microsoft .NET Framework is required for this application. Press OK to install, press Cancel to abort." IDOK InstallNET IDCANCEL 0
Abort ;<-Next page skipped
quit ;now how do I close the installer?

InstallNET:
SetOutPath "$INSTDIR"
SetOverwrite ifnewer
File "dotnetfx.exe"
ExecWait '"$INSTDIRdotnetfx.exe"'

Done:


FunctionEnd
Omatase is offline   Reply With Quote
Old 18th May 2004, 13:15   #4
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Remove the Abort command.
Joost Verburg is offline   Reply With Quote
Old 18th May 2004, 13:53   #5
Omatase
Junior Member
 
Join Date: May 2004
Posts: 3
All worky! TYVM!!!
Omatase is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump