MessageBox plug-in

From NSIS Wiki

Author: DrO (talk, contrib)


[edit] Links

Latest version v0.98 beta 3 (all older versions are in the forum thread if you are interested in the development of things)

[beta 3 fixes a major crash issue when running a silent installer and no caption is specified inorder to use the installer's title]

Warning: This plug-in does not work with Windows 2003 Server. A.Grandfield. Temporary workaround: Disable DEP (data execution prevention) during installation.

[edit] Description

At last you can have a functional four button MessageBox in your installer.

The number of buttons is customisable and so is the text to be used for the buttons (either predefined or whatever you decide).

It is also possible to use a custom icon on the MessageBox (either from the installer or from other files) to make it more relevant to your installer style.

check out here for the related forum

notes:

  • The buttons will be correctly resized to the button text and a few other tweaks to the code in the next release :o)
  • if all parameters have not been taken from the stack before using the plugin then it is possible that the number of buttons shown will not be as wanted (thanks to n0On3 for pointing this out)
  • bug: I cannot show my variable's value in messagebox text. For example:

messagebox::show MB_DEFBUTTON3 "" "" "Program path is - $INSTDIR" "Yep" "Nope"

Maybe it is because $ is using for "\n" (c) Rain

Personal tools
donate
ads