Skip to content
⌘ NSIS Forum Archive

Is this page jumping or loading?

6 posts

Joel#

Is this page jumping or loading?

I got this question:

!define MUI_ICON "msi.ico"
!define MUI_LICENSEPAGE_RADIOBUTTONS
!define MUI_CUSTOMFUNCTION_ABORT "Custom_Abort"

# Pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "lic.rtf"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

Function "Custom_Abort"
MessageBox MB_YESNO|MB_ICONQUESTION "¿Desea salir del asistente de instalación?" IDYES NoCancelAbort
Abort
NoCancelAbort:
FunctionEnd
My idea is if the user cancel the installer before he/she see the INSTFILES page, automatically jump/load the FINISH page. I search and must of them suggest to create a custom page... I don't want that... I want the same page like the user succesfully installed my app... any ideas?
Afrow UK#
Why not use the Go to NSIS page script:


-Stu
Afrow UK#
Here you go. It works pretty damn well too!
I also made it change the Finish page text to say that it was cancelled (no language strings though).

-Stu