参考下
SP3安装后HD声卡无法安装驱动
fileinstall("KB888111XPSP2.exe",@TempDir & "\KB888111XPSP2.exe")
$OS=Regread("HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\CONTROL\WINDOWS","CSDVersion")
if $os=0 or $os=6 then Exit
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\CONTROL\WINDOWS","CSDVersion","REG_DWORD",512)
run(@tempdir & "\KB888111XPSP2.exe")
winwait("软件更新安装向导")
WinActivate("软件更新安装向导")
send("{enter}")
send("!{a}")
send("!{n}")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\CONTROL\WINDOWS","CSDVersion","REG_DWORD",768) |