You could always install the AutoItX dll and block input...

code:
$oAutoIt = CreateObject("AutoItX.Control")
if $oAutoIt=0
? "AutoItX not registered."
endif
$oAutoIt.BlockInput("on")
; Do your install here...
$oAutoIt.BlockInput("off")