PDA

View Full Version : How to show finish page if user skips custom registration page


yemmem
20th August 2009, 09:30
In My Installer application,i need to show Finish page,if user skips custom registration page.
Detail:
The pages are called in following order

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_STARTMENU
!insertmacro "Custom Registration File1"
!insertmacro "Custom Registration File2"
!insertmacro "Custom Registration File3"
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

During installation if user skips registration in "Custom Registration File2",Finish Page should be displayed.

Using MUI_ABORTWARNING,message box is displayed with warning message.if user selects yes in message box,the process ends there itself.but it should go to finish page to run installed .exe

Hope to get valuable info on this

- Yemmem

sprinleo
1st September 2009, 16:25
i wish to do a similar operation, after a custom page, the Finish page should be displayed ? please advise .

CrushBug
1st September 2009, 18:15
I can't find the code right now, but there was a function around called RelGotoPage that you would call to make your installer go to a specific page.

We used this to go to the Finish page in all cases.

jpderuiter
1st September 2009, 18:37
http://nsis.sourceforge.net/Go_to_a_NSIS_page

CrushBug
1st September 2009, 20:15
Thanks jpderuiter, I have having problems finding that page. =)

sprinleo
2nd September 2009, 09:37
well... i have a different kind of requirement:
Welcome_Page->License_Page->Decline_License_Page->Finish_Page

Among the above, License and Decline_License are custom pages.

I wish to finish the installation on Decline_License_Page, but this page shows the usual Back, Next and Cancel buttons. does anyone know how to have only Back and Finish buttons on this page ?

If not, how can i display the Finish_Page immediately after Decline_License_Page

thanks guys for your help !