After installing some windows functionnalities with dism (win2008R2), i need to detect if a reboot is needed.
A reboot is needed because I cannot install a new windows functionnalty.
I have tried this
${If} ${RebootFlag}And
Messagebox mb_ok "Rebook detected"
Push $R1I have found this function on the wiki.
Call RestartRequired
Exch $R1
StrCmp $R1 "1" RestartRequired noreboot
Is there a solution to detect a pending reboot?
Regards