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

  • SEARCH
  • Home
  • 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 8961933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:00:32+00:00 2026-06-15T16:00:32+00:00

I have a working NSIS Modern UI 2 script that has five components. One

  • 0

I have a working NSIS Modern UI 2 script that has five components. One of them is the main application, and there are four helper applications. Due to the nature of the applications, none of them requires the other to run; hence, they are all optional installs. This includes the main application.

At the finish page, I can have an option to start the main application with

!define MUI_FINISHPAGE_RUN "$INSTDIR\MyProgram.exe"
!define MUI_FINISHPAGE_RUN_TEXT "Start the main program"

as long as that goes before the

!insertmacro MUI_PAGE_FINISH

command. However, I don’t want the checkbox to be visible (or at least enabled) if the user doesn’t install the main application.

I’ve tried putting the first two lines inside the Section MainSection, but it doesn’t show the box because by then, the UI has already been created.

I’d prefer not to always have it enabled and point to a function that runs if it’s been installed, and shows a MessageBox otherwise.

Is there a way to do this?

  • 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-06-15T16:00:33+00:00Added an answer on June 15, 2026 at 4:00 pm

    Those MUI defines are used at compile time, you need to modify the checkbox at runtime:

    !include LogicLib.nsh
    !include MUI2.nsh
    !insertmacro MUI_PAGE_COMPONENTS
    !insertmacro MUI_PAGE_INSTFILES
    !define MUI_FINISHPAGE_RUN "$instdir\Maybe.exe"
    !define MUI_PAGE_CUSTOMFUNCTION_SHOW ModifyRunCheckbox
    !insertmacro MUI_PAGE_FINISH
    !insertmacro MUI_LANGUAGE English
    
    Section "Maybe" SID_MAYBE
    ; File "Maybe.exe"
    SectionEnd
    
    Function ModifyRunCheckbox
    ${IfNot} ${SectionIsSelected} ${SID_MAYBE} ; You could also check if the file exists...
        SendMessage $mui.FinishPage.Run ${BM_SETCHECK} ${BST_UNCHECKED} 0
        EnableWindow $mui.FinishPage.Run 0 ; Or ShowWindow $mui.FinishPage.Run 0
    ${EndIf}
    FunctionEnd
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a NSIS script that is working well for a large application. I
I'm working on an NSIS script in which I have two directory pages. One
I have an nsis installer script for the application im working on and it
I have working registration script the only problem is that i do not know
We have an application in Grails 2.0 that we have working when we run
I'm trying to reuse some script that I have working on another page, but
I have the following extension method that I've built and have working for one
I have working script that the user completes inputs on a form and when
I'm writing a social networking app that has contacts sync functionality. I have working
I have working on navigation base application. my problem is that when i am

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.