Jump to content

Recommended Posts

Posted

No matter what I try (sending keys, using the mouse, etc) I cannot get Autoit to activate the "Continue Anyways" button that comes up when you try to install an unsigned driver. It actually installs the driver properly, but the Hardware Installation window opens and nothing happens. Here is the code I have for this atm:

FileCopy("\\server\install\all drivers\serial & parallel\lava serial drivers\lavaosp.inf","c:\windows\inf")
            FileCopy("\\server\install\devcon.exe","c:\windows")
            RunWait(@ComSpec & ' /c c:\windows\devcon.exe update c:\windows\inf\lavaosp.inf "PCI\VEN_1407&DEV_0110&SUBSYS_01101407&REV_00"')
            WinWait("Hardware Installation","")
            ControlClick('Hardware Installation', '', 'Button1')
            Sleep(4000)
            RunWait(@ComSpec & ' /c c:\windows\devcon.exe update c:\windows\inf\lavaosp.inf "PCI\VEN_1407&DEV_0111&SUBSYS_01111407&REV_00"')
            WinWait("Hardware Installation","")
            ControlClick('Hardware Installation', '', 'Button1')
            MsgBox(4096,"Install","Lava Serial Drivers installed. Click OK to verify in device manager")
            RunWait(@SystemDir & "\mmc.exe " & @SystemDir & "\devmgmt.msc")

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...