lpxx 发表于 2008-9-28 20:38:39

McAfee自动安装

#Region ;**** 参数创建于 AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_outfile=McAfee自动安装.exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
TrayTip("注意:安装期间请勿乱动键盘和鼠标!","正在安装McAfee杀毒软件,请稍候...",10,1)
run("Setup.exe")
WinWaitActive("McAfee VirusScan Enterprise 安装程序")
ControlClick ( "McAfee VirusScan Enterprise 安装程序", "下一步", "Button1")
WinWaitActive("Network Associates 许可")
ControlCommand("Network Associates 许可","", "ComboBox2","SelectString", '永久')
ControlCommand("Network Associates 许可","", "ComboBox1","SelectString", '中国')
ControlClick ( "Network Associates 许可", "我接受许可协议的条款", "Button1")
ControlClick ( "Network Associates 许可", "确定", "Button3")
WinWaitActive("McAfee VirusScan Enterprise 安装程序")
ControlClick ( "McAfee VirusScan Enterprise 安装程序", "典型", "Button2")
ControlClick ( "McAfee VirusScan Enterprise 安装程序", "下一步", "Button7")
WinWaitActive("McAfee VirusScan Enterprise 安装程序")
ControlClick ( "McAfee VirusScan Enterprise 安装程序", "安装", "Button1")
WinWaitActive("McAfee VirusScan Enterprise 安装程序","成功完成")
Send("{SPACE}")
Send("{TAB}")
Send("{SPACE}")
ControlClick ( "McAfee VirusScan Enterprise 安装程序", "完成", "Button3")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\TVD\VirusScan Enterprise\CurrentVersion", "bSkipSplash","REG_DWORD", "dword:00000001")
Exit
页: [1]
查看完整版本: McAfee自动安装