Any ideas? I did see a Registry Key for XP Embedded, but it did not work on XP Pro.
Suppressing New Hardware Window
#1
Posted 04 January 2006 - 04:27 PM
Any ideas? I did see a Registry Key for XP Embedded, but it did not work on XP Pro.
#2
Posted 04 January 2006 - 04:48 PM
This is my AutoIt 2.6 script for Windows 2003:
BEGIN:
Sleep, 5000
IfWinExist, Confirm File Replace, , Goto, CONFIRM
IfWinExist, Found New Hardware Wizard, Cannot Install this Hardware, Goto, NOINSTALL
IfWinExist, Found New Hardware Wizard, The wizard has finished, Goto, FINISHED
IfWinExist, Found New Hardware Wizard, Completing the Found, Goto, QUICK
IfWinExist, Found New Hardware Wizard, Welcome to, Goto, NORMAL
Sleep, 10000
Goto, START
START:
IfWinExist, Confirm File Replace, , Goto, CONFIRM
IfWinExist, Found New Hardware Wizard, Cannot Install this Hardware, Goto, NOINSTALL
IfWinExist, Found New Hardware Wizard, The wizard has finished, Goto, FINISHED
IfWinExist, Found New Hardware Wizard, Completing the Found, Goto, QUICK
IfWinExist, Found New Hardware Wizard, Welcome to, Goto, NORMAL
Goto, EXIT
NORMAL:
WinActivate, Found New Hardware Wizard
WinWaitActive, Found New Hardware Wizard
Send, !n
Goto, BEGIN
CONFIRM:
WinActivate, Confirm File Replace
WinWaitActive, Confirm File Replace
Send, !a
Goto, BEGIN
FINISHED:
WinWaitActive, Found New Hardware Wizard, The wizard has finished
Send, {ENTER}
Goto, BEGIN
NOINSTALL:
WinWaitActive, Found New Hardware Wizard, Cannot Install this Hardware
Send, {TAB 2}{ENTER}
Goto, BEGIN
QUICK:
WinActivate, Found New Hardware Wizard, Completing the Found
WinWaitActive, Found New Hardware Wizard, Completing the Found
Send, {ENTER}
Goto, BEGIN
EXIT:
Exit
I have not tested this on XP, it may have to be "tweaked".
#3
Posted 04 January 2006 - 04:49 PM
REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DriverSearching] "DontSearchWindowsUpdate"=dword:00000001 "DontPromptForWindowsUpdate"=dword:00000001 "DontSearchCD"=dword:00000001 "DontSearchFloppies"=dword:00000001 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Driver Signing] "BehaviorOnFailedVerify"=dword:00000000 [HKEY_USERS\.DEFAULT\Software\Policies\Microsoft\Windows NT\Driver Signing] "BehaviorOnFailedVerify"=dword:00000000
without any success
If anyone has the solution come on ! because popup appears when have mouse & keyboard usb so we can't confirm install because there no classic mouse & keyb ...
This post has been edited by sonic: 04 January 2006 - 04:50 PM
#4
Posted 04 January 2006 - 08:30 PM
Jazkal, on Jan 4 2006, 05:48 PM, said:
How would I use this AutoIt script along with a cmd file? Is it something that always runs checking for those options? I've got a few Windows that seem to pop up a few seconds after the majority of them.
#5
Posted 04 January 2006 - 09:04 PM
The autoit script basicly loops inside itself, because some of my machines have differing numbers of new hardware popup dialogs. And once it stops detecting the dialogs, it exits, and allows the rest of the script to continue.
#6
Posted 04 January 2006 - 09:07 PM
Jazkal, on Jan 4 2006, 10:04 PM, said:
The autoit script basicly loops inside itself, because some of my machines have differing numbers of new hardware popup dialogs. And once it stops detecting the dialogs, it exits, and allows the rest of the script to continue.
Guess I'll have to look at AutoIT. I'm launching my scripts via RunOnce on boot, so I could just include the AutoIT script as well.
#7
Posted 04 January 2006 - 09:43 PM
Jazkal, on Jan 5 2006, 08:48 AM, said:
This is my AutoIt 2.6 script for Windows 2003:
I have not tested this on XP, it may have to be "tweaked".
Jazkal, I made an AutoIt 3 conversion of your script. Try to emulate your goto methods and this is the result. I did not try to improve, but to just simply convert.
For $i = 1 To 2
While 1
Sleep(5000)
If WinExists('Confirm File Replace') Then
WinActivate('Confirm File Replace')
WinWaitActive('Confirm File Replace')
Send('!a')
Exit
EndIf
If WinExists('Found New Hardware Wizard', 'Cannot Install this Hardware') Then
WinWaitActive('Found New Hardware Wizard', 'Cannot Install this Hardware')
Send('{TAB 2}{ENTER}')
ContinueLoop
EndIf
If WinExists('Found New Hardware Wizard', 'The wizard has finished') Then
WinWaitActive('Found New Hardware Wizard', 'The wizard has finished')
Send('{ENTER}')
ContinueLoop
EndIf
If WinExists('Found New Hardware Wizard', 'Completing the Found') Then
WinActivate('Found New Hardware Wizard', 'Completing the Found')
WinWaitActive('Found New Hardware Wizard', 'Completing the Found')
Send('{ENTER}')
ContinueLoop
EndIf
If WinExists('Found New Hardware Wizard', 'Welcome to') Then
WinActivate('Found New Hardware Wizard')
WinWaitActive('Found New Hardware Wizard')
Send('!n')
ContinueLoop
EndIf
Sleep(10000)
ExitLoop
WEnd
Next
Exit
Edit: Added a For loop to enable a second run of loop. Thanks Jazkal.
This post has been edited by MHz: 05 January 2006 - 06:41 AM
#8
Posted 04 January 2006 - 11:02 PM
MC.
#9
Posted 04 January 2006 - 11:30 PM
I would suggest you go online to download newer drivers for your hardware.
#10
Posted 04 January 2006 - 11:32 PM
MHz, on Jan 4 2006, 10:43 PM, said:
MHz, I've been meaning to convert all my v2.6 scripts over to v3, just haven't made the time to do it. One thing I think is missing from the script is a loop. That code looks like it will run through once and then exit. You want it to run through, and then check to see if there is another dialog that comes up.
MAVERICKS CHOICE, on Jan 5 2006, 12:02 AM, said:
MC.
MC, I run this from a master script which is run from the RUN registry entry on first login desktop load. I wait for it to exit out (after multiple New Hardware Wizards come up), and then continue on from there.
#12
Posted 05 January 2006 - 07:03 AM
Jazkal, on Jan 5 2006, 03:32 PM, said:
Thanks for seeing the difference. Seems your interpretation of v3 is alittle better of my interpretation of v2. Been awhile since I used v2.
Well, here is a timed loop version using v3. I used Select Case as all the If's were getting messy. The code below will loop for the setting of 1 minute.
$allowed = 60 * 1000
$time = TimerInit()
While $allowed > TimerDiff($time)
Select
Case WinExists('Confirm File Replace')
WinActivate('Confirm File Replace')
Case WinExists('Found New Hardware Wizard')
WinActivate('Found New Hardware Wizard')
Case Else
Sleep(5000)
ContinueLoop
EndSelect
Sleep(250)
Select
Case WinActive('Confirm File Replace')
Send('!a')
Case WinActive('Found New Hardware Wizard', 'Cannot Install this Hardware')
Send('{TAB 2}{ENTER}')
Case WinActive('Found New Hardware Wizard', 'The wizard has finished')
Send('{ENTER}')
Case WinActive('Found New Hardware Wizard', 'Completing the Found')
Send('{ENTER}')
Case WinActive('Found New Hardware Wizard', 'Welcome to')
Send('!n')
EndSelect
WEnd
#13
Posted 05 January 2006 - 08:06 AM
sonic, on Jan 5 2006, 06:42 AM, said:
No, it's not.
So this AutoIT script runs first, looking for an closing any Windows. It loops until it doesn't find anymore, then exits. After it exits, and the next part/next script runs.
Thats how that script runs, correct?
BTW, thank you all for the input, I thought I was going to be dead in the water!
#14
Posted 05 January 2006 - 08:32 AM
JDS300, on Jan 6 2006, 12:06 AM, said:
sonic, on Jan 5 2006, 06:42 AM, said:
No, it's not.
So this AutoIT script runs first, looking for an closing any Windows. It loops until it doesn't find anymore, then exits. After it exits, and the next part/next script runs.
Thats how that script runs, correct?
BTW, thank you all for the input, I thought I was going to be dead in the water!
What you can do is just add a HKCU RunOnce entry from a HKLM RunOnceEx entry. This will run the script only once for you and the RunOnce entry clears once executed.
I just tested this entry and works ok.
Example:
Set KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx Set RunOnce=HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce REG ADD %KEY%\099 /V 1 /D "Reg Add %RunOnce% /v ScanWFP /d \"C:\Install\Compiled.exe\"" /f
#15
Posted 05 January 2006 - 09:17 AM
I am using the code that Jazkal posted, and for XP so far the only thing I've had to change was the following:
NORMAL:
WinActivate, Found New Hardware Wizard
WinWaitActive, Found New Hardware Wizard
Send, {TAB 2}{ENTER}
Goto, BEGIN
In W2k3, it was sending !n, and XP doesn't seem to know what to do with that. Replacing !n with {TAB 2}{ENTER} gets the Windows to close. Just incase anyone else is interested.
#16
Posted 24 January 2006 - 11:03 AM
Anyone know if it is a patch, so I could install this patch/set of patches after the drivers have installed!!!



Help
Back to top









