Installing Unsigned Drivers
#1
Posted 13 January 2012 - 11:21 AM
Apologies first as this topic may have been covered many times before, but having looked through the forum I havnt been able to find a difinitive answer.
I have some drivers for a Roland Dr Stika cutting machine which are unsigned, meaning when I try and install them I get a dialog box displays asking me to confirm installation of unsigned drivers. I would like to automate the installation so I can install the drivers on our RM CC4 network. The drivers come in 3 forms I have the raw driver files an EXE and an MSI all unstall the drivers just they all display this box.
Im new to Autoit and scripting isnt my forte (dont mind learning though) could someone point me in the right direction of creating this script?
Thanks
#2
Posted 13 January 2012 - 12:44 PM
Edit: http://wrongpc.blogspot.com/2008/03/how-to-self-sign-64-bit-driver-on-vista.html
http://msdn.microsoft.com/en-us/library/windows/hardware/ff553467%28v=vs.85%29.aspx
Edited by ProgAndy, 13 January 2012 - 12:53 PM.
#3
Posted 13 January 2012 - 12:48 PM
#4
Posted 13 January 2012 - 01:00 PM
#5
Posted 13 January 2012 - 03:08 PM
#6
Posted 23 April 2012 - 02:02 PM
Opt("WinTitleMatchMode", 2)
$pRun = ShellExecuteWait("C:DRIVER SV-8.msi", "/qn")
While ProcessExists($pRun)
If WinActive("Windows Security") Then Send("!i")
WEnd
but the dialogue is still displayed
Thanx for the replies but how can I find the control identifier?
#7
Posted 23 April 2012 - 02:09 PM
Runs an external program using the ShellExecute API and pauses script execution until it finishes. That might be why it's not working for you.
How to ask questions the smart way!
Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.
Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.
_FileGetProperty - Retrieve the properties of a file SciTE Toolbar - A toolbar demo for use with the SciTE editorGUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.
GUIToolTip UDF Demo - Demo script to show how to use the GUIToolTip UDF to create and use customized tooltips.
#8
Posted 23 April 2012 - 02:30 PM
WinActive("Windows Security") Then Send("!i")
but, Iv just tried it on another PC and it doesnt (I have move the msi the the C: drive of the other PC)
iv alo noticed the installs runs very quick, the icon in the system tray appears for about 1 second
Edited by bugs, 23 April 2012 - 02:31 PM.
#9
Posted 23 April 2012 - 02:45 PM
found If I removed the exclamation mark from this line it works
WinActive("Windows Security") Then Send("!i")
As you should know "!" = alt so you're sending ALT + i. Based on your above code however, whether you have "!" or not shouldn't matter because of ShellExecuteWait(), unless the app opens another process and terminates the current one, which then you'll want additional checks for windows/processes to ensure you're sending the keystrokes with correct timing and focus.
#10
Posted 23 April 2012 - 03:27 PM
It compiles and builds OK but when I run it the icon in the tray appears for a second. I have checked in the driver repository and the driver hasnt been installed.
#11
Posted 26 April 2012 - 01:49 PM
If it's exiting automatically based on the above code, I would think that your $pRun doesn't exist yet... or that process spawns a different process. Try using a WinWait() targeting the HWND in the title. Then WinActivate() & WinWaitActive() and send()Iv tried using this code:
Opt("WinTitleMatchMode", 2)
$pRun = ShellExecute("C:DRIVER SV-8.msi", "/qn")
While ProcessExists($pRun)
If WinActive("Windows Security") Then Send("!i")
WEnd
but the dialogue is still displayed
Thanx for the replies but how can I find the control identifier?
Opt("WinTitleMatchMode", 2) $pRun = ShellExecute("C:DRIVER SV-8.msi", "/qn") WinWait($pRun, "") WinActivate($pRun,"") WinWaitActive($pRun,"") Send("!i")
#12
Posted 30 April 2012 - 11:57 AM
Thanx
Craig
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





