#NoEnv SendMode Input SetWorkingDir %A_ScriptDir% dllpath = %A_ScriptDir% dll1 = %A_ScriptDir%AxHTMLayout.dll dll2 = %A_ScriptDir%htmlayout.dll if(not FileExist(dll1) And not FileExist(dll2)) { MsgBox, 缺少HTMLayout DLL组件,退出程序 ExitApp } RunWait, %comspec% /c "regsvr32 "%dllpath%"AxHTMLayout.dll", , min