Если вы не "воюете" с AutoIt-скриптами, то попробуйте так:
Код:
If WinExists(@ScriptName) Then Exit
AutoItWinSetTitle(@ScriptName)
AutoItSetOption("TrayIconDebug",1)
BlockInput(1)
Run("irfanview_lang_russian.exe")
WinWaitActive("IrfanView Language Installer","Welcome to IrfanView Language Installer!")
ControlClick("IrfanView Language Installer","Welcome to IrfanView Language Installer!","Button1")
WinWaitActive("IrfanView Language Installer","Installation successfull!")
ControlClick("IrfanView Language Installer","Installation successfull!","Button1")
BlockInput(0)
Exit
Удачи!