<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Reference%2FMessageBox</id>
	<title>Reference/MessageBox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Reference%2FMessageBox"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Reference/MessageBox&amp;action=history"/>
	<updated>2026-07-31T05:05:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=Reference/MessageBox&amp;diff=21367&amp;oldid=prev</id>
		<title>Jan: Created page with &quot;=MessageBox=   mb_option_list messagebox_text [/SD return] [return_check jumpto] [return_check_2 jumpto_2]  Displays a MessageBox containing the text &quot;messagebox_text&quot;. mb_option...&quot;</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Reference/MessageBox&amp;diff=21367&amp;oldid=prev"/>
		<updated>2011-11-27T19:06:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=MessageBox=   mb_option_list messagebox_text [/SD return] [return_check jumpto] [return_check_2 jumpto_2]  Displays a MessageBox containing the text &amp;quot;messagebox_text&amp;quot;. mb_option...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=MessageBox=&lt;br /&gt;
&lt;br /&gt;
 mb_option_list messagebox_text [/SD return] [return_check jumpto] [return_check_2 jumpto_2]&lt;br /&gt;
&lt;br /&gt;
Displays a MessageBox containing the text &amp;quot;messagebox_text&amp;quot;. mb_option_list must be one or more of the following, delimited by |s (e.g. MB_YESNO|MB_ICONSTOP).&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;MB_OK&amp;#039;&amp;#039; - Display with an OK button&lt;br /&gt;
*&amp;#039;&amp;#039;MB_OKCANCEL&amp;#039;&amp;#039; - Display with an OK and a cancel button&lt;br /&gt;
*&amp;#039;&amp;#039;MB_ABORTRETRYIGNORE&amp;#039;&amp;#039; - Display with abort, retry, ignore buttons&lt;br /&gt;
*&amp;#039;&amp;#039;MB_RETRYCANCEL&amp;#039;&amp;#039; - Display with retry and cancel buttons&lt;br /&gt;
*&amp;#039;&amp;#039;MB_YESNO&amp;#039;&amp;#039; - Display with yes and no buttons&lt;br /&gt;
*&amp;#039;&amp;#039;MB_YESNOCANCEL&amp;#039;&amp;#039; - Display with yes, no, cancel buttons&lt;br /&gt;
*&amp;#039;&amp;#039;MB_ICONEXCLAMATION&amp;#039;&amp;#039; - Display with exclamation icon&lt;br /&gt;
*&amp;#039;&amp;#039;MB_ICONINFORMATION&amp;#039;&amp;#039; - Display with information icon&lt;br /&gt;
*&amp;#039;&amp;#039;MB_ICONQUESTION&amp;#039;&amp;#039; - Display with question mark icon&lt;br /&gt;
*&amp;#039;&amp;#039;MB_ICONSTOP&amp;#039;&amp;#039; - Display with stop icon&lt;br /&gt;
*&amp;#039;&amp;#039;MB_USERICON&amp;#039;&amp;#039; - Display with installer&amp;#039;s icon&lt;br /&gt;
*&amp;#039;&amp;#039;MB_TOPMOST&amp;#039;&amp;#039; - Make messagebox topmost&lt;br /&gt;
*&amp;#039;&amp;#039;MB_SETFOREGROUND&amp;#039;&amp;#039; - Set foreground&lt;br /&gt;
*&amp;#039;&amp;#039;MB_RIGHT&amp;#039;&amp;#039; - Right align text&lt;br /&gt;
*&amp;#039;&amp;#039;MB_RTLREADING&amp;#039;&amp;#039; - RTL reading order&lt;br /&gt;
*&amp;#039;&amp;#039;MB_DEFBUTTON1&amp;#039;&amp;#039; - Button 1 is default&lt;br /&gt;
*&amp;#039;&amp;#039;MB_DEFBUTTON2&amp;#039;&amp;#039; - Button 2 is default&lt;br /&gt;
*&amp;#039;&amp;#039;MB_DEFBUTTON3&amp;#039;&amp;#039; - Button 3 is default&lt;br /&gt;
*&amp;#039;&amp;#039;MB_DEFBUTTON4&amp;#039;&amp;#039; - Button 4 is default&lt;br /&gt;
&lt;br /&gt;
Return_check can be 0 (or empty, or left off), or one of the following:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;IDABORT&amp;#039;&amp;#039; - Abort button&lt;br /&gt;
*&amp;#039;&amp;#039;IDCANCEL&amp;#039;&amp;#039; - Cancel button&lt;br /&gt;
*&amp;#039;&amp;#039;IDIGNORE&amp;#039;&amp;#039; - Ignore button&lt;br /&gt;
*&amp;#039;&amp;#039;IDNO&amp;#039;&amp;#039; - No button&lt;br /&gt;
*&amp;#039;&amp;#039;IDOK&amp;#039;&amp;#039; - OK button&lt;br /&gt;
*&amp;#039;&amp;#039;IDRETRY&amp;#039;&amp;#039; - Retry button&lt;br /&gt;
*&amp;#039;&amp;#039;IDYES&amp;#039;&amp;#039; - Yes button&lt;br /&gt;
&lt;br /&gt;
If the return value of the MessageBox is return_check, the installer will [[Reference/Goto|Goto]] jumpto.&lt;br /&gt;
&lt;br /&gt;
Use the /SD parameter with one of the return_check values above to specify the option that will be used when the installer is silent. See [http://nsis.sourceforge.net/Docs//Chapter4.html#4.12 section 4.12] for more information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;MessageBox MB_OK &amp;quot;simple message box&amp;quot;&lt;br /&gt;
MessageBox MB_YESNO &amp;quot;is it true?&amp;quot; IDYES true IDNO false&lt;br /&gt;
true:&lt;br /&gt;
  DetailPrint &amp;quot;it&amp;#039;s true!&amp;quot;&lt;br /&gt;
  Goto next&lt;br /&gt;
false:&lt;br /&gt;
  DetailPrint &amp;quot;it&amp;#039;s false&amp;quot;&lt;br /&gt;
next:&lt;br /&gt;
MessageBox MB_YESNO &amp;quot;is it true? (defaults to yes on silent installations)&amp;quot; /SD IDYES IDNO false2&lt;br /&gt;
  DetailPrint &amp;quot;it&amp;#039;s true (or silent)!&amp;quot;&lt;br /&gt;
  Goto next2&lt;br /&gt;
false2:&lt;br /&gt;
  DetailPrint &amp;quot;it&amp;#039;s false&amp;quot;&lt;br /&gt;
next2:&amp;lt;/highlight-nsis&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
</feed>