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 8128463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:53:29+00:00 2026-06-06T07:53:29+00:00

Having a NSIS setup with Modern UI 2 , the user gets a message

  • 0

Having a NSIS setup with Modern UI 2, the user gets a message box to confirm when he clicks on the Cancel button in the installation wizard.

I want the user to be able to exit the installation wizard without confirming an additional “Are you sure?” dialog message box.

In the MUI sources I found this fragment:

!macro MUI_FUNCTION_ABORTWARNING

  Function .onUserAbort

    !ifdef MUI_PAGE_FUNCTION_ABORTWARNING
      Call ${MUI_PAGE_FUNCTION_ABORTWARNING}
    !endif

    !ifdef MUI_ABORTWARNING
      !insertmacro MUI_ABORTWARNING
    !endif

    !ifdef MUI_CUSTOMFUNCTION_ABORT
      Call "${MUI_CUSTOMFUNCTION_ABORT}"
    !endif
  FunctionEnd

!macroend

I am both able to define the MUI_PAGE_FUNCTION_ABORTWARNING function and the MUI_CUSTOMFUNCTION_ABORT function.

Since the actual message box is defined in the middle call to the MUI_ABORTWARNING macro, I see no way to stop the macro from being called.

My question is:

Is there a way to hinder MUI from showing the user a confirmation message box when he clicks the Cancel button during the setup process?

  • 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-06T07:53:31+00:00Added an answer on June 6, 2026 at 7:53 am

    This warning is controlled by !define MUI_ABORTWARNING (Before you include mui.nsh):

    Name "Test"
    Outfile "Test.exe"
    RequestExecutionLevel user
    
    #Comment/uncomment this to toggle the messagebox: !define MUI_ABORTWARNING
    
    !include MUI2.nsh
    
    !insertmacro MUI_PAGE_WELCOME
    !insertmacro MUI_PAGE_INSTFILES
    !insertmacro MUI_PAGE_FINISH
    !insertmacro MUI_LANGUAGE English
    
    Section
    SectionEnd
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having the following domain class: class Message{ } Want to get all messages with
Having just added a new button in my web application, I get an error
Having a list of 3-tuples : [(a, b, c), (d, e, f)] I want
I am putting together my first NSIS installer script, and having some trouble. I
Having (presumably) understood the motivation behind Nuget, I want to know, whether we still
Having trouble installing play! on windows. Following the installation guide on: http://www.playframework.org/documentation/1.2.4/install After installing
Having trouble disabling the active state. Any thoughts? So when a user click on
Having a problem with SWFObject reporting the correct error message for users running OSX
Having a slight problem with the following block of code: newusr = c.readLine(New user?
Having searched a whole lot of similair posts, workarounds, I decided to make my

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.