Archive: Problem with reboot


Problem with reboot
Hi,
I'm using InstallLib, and it sets the reboot flag because some dlls are being used. I have .onInstSuccess defined like this:

Function .onInstSuccess
IfRebootFlag +1 end
MessageBox MB_YESNO|MB_DEFBUTTON2 "A reboot is required to finish the installation. Do you wish to reboot now?" IDNO end
Reboot
end:
FunctionEnd

But at the end of the installation when I press finish, it doesn't asks me nothing and just reboots!!!

What am I doing wrong?

Best regards,
Gustavo Guerra


If you are using Modern UI, did you !define MUI_FINISHPAGE_NOREBOOTSUPPORT?

Stu


No, I didn't.

I managed to make this work by moving the code I had in .onInstSuccess to FinishPre. It's not quite the same, as the popup appears a little earlier, but works for me.

Regards,
Gustavo Guerra