Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7493319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:53:32+00:00 2026-05-29T16:53:32+00:00

I am putting together my first NSIS installer script, and having some trouble. I

  • 0

I am putting together my first NSIS installer script, and having some trouble.

I am using Modern UI and have provided a simplified script below:

!insertmacro MUI_PAGE_COMPONENTS
Page custom CustomPage

Section "Tomcat" SEC01  
;stuff in here to install Tomcat from bundled installer  
SectionEnd

Section "Deploy WARS" SEC02  
;Fire a separate custom page so that I can use nsDialog to get
;user to choose a folder location for deploying WARs.
;(as potentially their could be more than one Tomcat installed) 
SectionEnd

From what I have read, you cannot fire a custom page from within a section.
So how can I maintain the MUI_PAGE_COMPONENTS page to allows user to choose on if they want to install Tomcat AND/OR also deploy WARs.

I will def need a custom page right?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T16:53:34+00:00Added an answer on May 29, 2026 at 4:53 pm

    You can have more than one instfiles page so you could have a installer with this page order:

    1. Components
    2. InstFiles (Installs Tomcat)
    3. Directory (Choose WAR destination)
    4. InstFiles (Install WAR)

     

    Section "Tomcat" SECTOM
    SectionEnd
    Section /o "WAR" SECWAR
    SectionEnd
    Section
    ;Use macros from sections.nsh to deselect SECTOM and select SECWAR
    SectionEnd
    

    The pre callback functions for page 3 and 4 need to use SectionFlagIsSet from sections.nsh and call Abort if the War component was not selected so the pages are skipped.


    Another alternative is to try the DlgHost plugin and show the custom dialog in a child window on your instfiles page…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Putting together a NSIS installer. (first time) Currently, a manual step in our install
I am having some trouble putting a query together. I need to show images
I'm interested in putting together my first online game using Flash as the client
I am putting together some ideas for our automated testing platform and have been
A noob question. I'm putting together my first database and have the following design
I am putting together some mock-ups of my first real interface and I am
I'm putting together my first MVC application and have a question about how to
I am putting an XSL together than will create a NAnt build script using
I'm putting together a script to find remove duplicates in a large library of
I am putting together an Java application that needs to display some basic lab

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.