Got a little problem with both suggestion

lonkero: Same text is displayed during installation phase (file copying) as when it has finished.
Changed the text to the following

[swedish]
Do Sleep 1
Until NOT SetFocus("Datorn måste startas om innan inställningarna börjar gälla")
$x=SendKeys("{enter}")
Exit 0

then it works / thanks

sealeopard:
How to tell the shutdown command to wait, untill the installtion is finished ?

Regards

\erik