I made a setup and at the end I want it to ask them if they want to restart their computer now or later. I want to do this by having a dialog box that says something like "Sorry, but you have to restart your computer" and then there will be two buttons, "restart now" and "restart later". How do I do this? I know how to do that they have a dialog box that says something with only one button and when they press it, it restarts their computer. How do I do two buttons? HELP! Thank you in advance.
Dialog Box with Buttons
Collapse
X
-
most simple would be with a message box that asks '.... do you want to restart now?' and has Yes and No buttons.
In case you need custom buttons text, modify some of the available screens.
Add a new screen in the "After Installing" section, or simply modify the "Finished Install" screen , I think it's added by default - uncheck 'Visible' for the Cancel button, and change texts of Back and Finish buttons to Restart Now & Restart Later. Then edit the action associated with the Restart Now button.
-
-
for a message box, sort of this
Code:q = Dialog.Message("Reboot now?", "Do you want to reboot now?", MB_YESNO, MB_ICONQUESTION, MB_DEFBUTTON2); if q == IDYES then --reboot System.Reboot(); else --quit Application.Exit(); end;
Comment
-
-
then put this in the On Next script
Code:uChoice = String.ToNumber(SessionVar.Expand("%RadioSelection%")); if uChoice == CTRL_RADIO_BUTTON_01 then --if the first option is selected, reboot --assumes the first radio button is 'Reboot now', second is 'Reboot later' System.Reboot(); else --otherwise quit Application.Exit(); end;
Comment
-
Comment