Archive: How to Skip Default Choose Components Page


How to Skip Default Choose Components Page
Hello Everybody,

**************************************************
TO CUT IT SHORT AFTER WELCOME PAGE I WANT TO SKIP THE DEFAULT CHOOSE COMPONENTS PAGE WHEN THE USER CLICKS THE CHECKMARK OF LICENSE PAGE AND GO TO NEXT PAGE 'CHOOSE INSTALL LOCATION PAGE' AND FROM THERE TO CARRY FORWARD TO FINISH PAGE.
****************************************************


I've developed my installer without using any page created by me.

All the default pages of NSIS goes like this during an installation:

-welcome page
-license page
-choose components page
-choose install location page
-finish page

I want to accomplish following jobs:
1. When the user moves to the 2nd page the License page and
clicks the 'I accept' - the check mark at left side, I've to
ask user one Question - whether the user wants to do this act or no? I have to trap this event when the user clicks the check mark.

2. If the user accepts the License page as stated above, I'll popup the message for that particular act yes/no

3. If he says 'yes' to my Question, then I want to Skip the default choose components page and straight away go to the next page 'choose install location page'

4. After the selection of destination folder, it will perform all the activities as usual i.e. calling the particular section.

Any body listening? Esp. Red Wine my current F1 for NSIS!
With regards,
:) :)


If you haven't components that users should be able to select, simply you may exclude the components page by adding a # in front of !insertmacro MUI_PAGE_COMPONENTS or just remove the line.
As for the weird message on license page (really I can't see why you need to pop up a message asking users to confirm that they have read the license) you may set up this action on license page leave function.


Thanks Red Wine for your response. My msg is not that what you thought. Actually my authority may ask me to insert certain option when the user selects the checkmark in the license page. Something like 'Create database?' If the user selects 'Yes' then skip component page and move to next page.

How to perform that license page leave function?

Regards,


Oh yes, to skip the component page will be dynamic, i.e. depending upon the user's response to my messagebox question after the user selects 'next' page in the license page.


Actually my authority may ask me to insert certain option when the user selects the checkmark in the license page.
I'd suggest set up a custom page right after the license page and ask users for additional tasks that may be performed instead of message box.
Then, depending on users selections, on components page pre function, you may skip the page.

Regarding to subject of this thread, I've just uploaded a releated page at wiki.
You may want to take a look on that,
http://nsis.sourceforge.net/Demonstr...Pre_Show_Leave


That piece was a great job. I'm obliged to you very much for this.

You senior guys of NSIS are just great. Thats why I love this community very much - true and helpful people out there.