PDA

View Full Version : Insert a message box


whitman84
08-14-2009, 08:27 AM
good afternoon,

i would like to know if is possible to make appear a message box with a text when i click on a button.

for example, at the end of setup, a message box "Remeber to reboot your computer"


thank you,
Matthew

pww
08-14-2009, 06:35 PM
sure, search the help for Dialog.Message, you may put it in the On Post Install script or when the Finish button on the last screen is clicked.

if Dialog.Message("Reboot is required", "Reboot now?", MB_YESNO, MB_ICONQUESTION, MB_DEFBUTTON1) == IDYES then
System.Reboot();
end