Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

YesNo Dialog with a custom text?


2 replies to this topic

hrms

hrms
  • Full Members
  • 25 posts

Posted 05 July 2010 - 08:45

Hi everybody,
I would like to display a small dialog with a short question and a 'Yes' and a 'No' button. How do I do this in an InstallScript project?
Do I really have to create a custom dialog or is there an existing dialog function I can use?
Thanks in advance for any help!

Maharani

Maharani
  • Full Members
  • 50 posts

Posted 05 July 2010 - 09:19

Two possibilities:

CODE

SetDialogTitle( DLG_ASK_YESNO, "Microsoft .NET Framework" );
if( AskYesNo( @ID_QUESTION_INSTALL_DOTNET, YES ) = YES ) then
 // Do something
endif


or simply
CODE

nResult = MessageBox( SdLoadString( IFX_MAINTUI_MSG ), MB_YESNO );
if (nResult != IDYES) then
 // Do something
endif;


Regards
Rita

Edited by Maharani, 05 July 2010 - 09:19.


hrms

hrms
  • Full Members
  • 25 posts

Posted 05 July 2010 - 15:20

Thanks a lot Rita!