I don't have this behaviour with notepad
I'm testing it with the installation of Acrobat Reader 5. (I've extracted the Acrobat distribution file with Winrar, to have the setup.exe file).
so, if launches setup and then I can press a key if I put the code before "createobject".
and it waits for the key press if I put it after "createobject":
$frmForm = CreateObject("Kixtart.Form")
run "d:\setup.exe"
? "press a key"
get $x

thanks for any help