Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 30th July 2008, 20:45   #1
wu5mike
Junior Member
 
Join Date: Jul 2008
Posts: 3
License pages inside sections/functions

Hi all, I'm new to NSIS and trying to make an installer that installs prerequisite apps but I also have to display the TOS for those apps and wanted to use the Page License command (as I want the apps to be otherwise silent).

However as I'm sure most of you know you can't have a Page inside a Function/Section, however I also need control flow like ${If} which I get errors about not being valid outside Functions/Sections.

I thought about calling the Page outside any Function and calling the Function afterwards but I can't use Call outside the Functions either.

How do people go about handling situations like these?

Thanks!
wu5mike is offline   Reply With Quote
Old 3rd August 2008, 16:33   #2
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
My suggestion would be to include all the pages you think you'll need and then use the ${If} logic inside a pre function (using !insertmacro MUI_PAGE_CUSTOMFUNCTION_PRE). If you call ABORT in the pre function, you will skip over that page.

Review the MUI docs and search the forum for examples.
Comperio is offline   Reply With Quote
Reply
Go Back   Winamp 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