Skip to content
⌘ NSIS Forum Archive

nsDialog OK Dialog

5 posts

Zilatica#

nsDialog OK Dialog

Is there a way to create (nsDialogs::Create) an nsDialog with just an OK button? I am trying to write a dialog that does not always show up, but when it does it indicates a problem with the install, gives the user the details, and shows just an OK button which aborts the install.

Is this possible?
Animaether#
You can always manipulate the existing three buttons for the purpose.

I.e. hide two of them, and change the text of the third (presumably the cancel button) to 'OK', then handle the code in the correct callback.

Or hide all three of them and just let an inner dialog button (of your own) deal with calling Abort/Quit.

You can probably distill the required code from this:

( or use the header as-is )