自动安装的针对性很强的,没有原程序,恐怕我不能帮你什么
以下是我写的金山wps配置设置,由于有几百台终端要配,所以编了这么个东西,与自动安装的原理一样的,你看看BlockInput(1)
Local $cmd = '"C:\Program Files\Kingsoft\WPS Office Professional\office6\ksomisc.exe"'
Local $sUserName = 'administrator'
Local $sPassword = 'Administrator'
;~ Local $pid = RunAs($sUserName, @ComputerName, $sPassword, 0, $cmd, @SystemDir, @SW_SHOW)
Local $pid = Run($cmd, @SystemDir, @SW_SHOW)
Do
$HWnd = WinWaitActive('WPS Office 综合修复/配置工具')
Sleep(100)
Until IsHWnd($HWnd)
ControlClick($HWnd, '', '[CLASS:Button; INSTANCE:2]')
Do
$HWnd = WinWaitActive('WPS Office 配置工具')
Sleep(100)
Until IsHWnd($HWnd)
ControlCommand($HWnd, '', '[CLASS:Button; INSTANCE:1]','UnCheck', '')
ControlCommand($HWnd, '', '[CLASS:Button; INSTANCE:2]','UnCheck', '')
ControlCommand($HWnd, '', '[CLASS:Button; INSTANCE:3]','Check', '')
ControlClick($HWnd, '', '[CLASS:Button; INSTANCE:7]')
Do
$HWnd = WinWaitActive('WPS Office 综合修复/配置工具')
Sleep(100)
Until IsHWnd($HWnd)
ControlClick($HWnd, '', '[CLASS:Button; INSTANCE:3]')
BlockInput(0)
|