I create installer with page finish which requires user to reboot.
I also set reboot flag in section or function or .onInit. My problem is:
Sometimes, my installer reboot.
I also read many information on forum about reboot. I aslo use reboot command in my installer like this
!define MUI_FINISHPAGE_RUNI do not understand why sometimes it reboot and sometimes it is not.
!define MUI_FINISHPAGE_RUN_FUNCTION FinishShow
!insertmacro MUI_PAGE_FINISH
Section -
SetOutPath $INSTDIR
SetRebootFlag true
SectionEnd
Function FinishShow
IfRebootFlag 0 noreboot
Reboot
noreboot:
FunctionEnd
If it works, it only close some windows which I is opening
Please help me!
I try my best to find a solution but I can not.
My word is too bad if you do not understand, please tell me!
Thank a lot,