Greetings,

I put together a sorry looking hack, not what I wanted to do but until
I can find another solution this will have to do.

The problem was: How to handle a new virtual hardware device. Since
this is a virtual device it doesn't have the usual vender and device
codes.

My solution was two fold

1 - After I install the application the installs the virtual hardware
driver, I added the installation directory containing the .inf file to
DevicePath in the registry:

------------ AutoIt v3 Script ---------------------------
; Add C:\la2124 to device path
$RegDevicePath = "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion"
$DevicePath = RegRead ( $RegDevicePath, 'DevicePath' )
$NewDevicePath = $DevicePath & ";%SystemDrive%\la2124"
RegWrite ($RegDevicePath, "DevicePath","REG_EXPAND_SZ",$NewDevicePath)
------------ AutoIt v3 Script ---------------------------

2 - After the software package is installed have unattended reboot the
computer then call another AutoIt v3 script to take care of the New
Hardware Found Wizard.

----------------- AutoIt v3 Script -----------------------------
AutoItSetOption("CaretCoordMode", 0)        ;1=absolute, 0=relative
AutoItSetOption("WinSearchChildren", 1)     ;0=no, 1=search childrenalso
AutoItSetOption("WinTitleMatchMode", 4)     ;1=start, 2=subStr,3=exact, 4=...

WinWait("Found New Hardware Wizard", "")
If WinExists("Found New Hardware Wizard", "Can Windows connect to Windows 
Update to search for software") Then
 WinActivate("Found New Hardware Wizard", "")
 Send("{TAB}")
 Send("{DOWN 2}")
 Send("{SPACE}")
 Send("!n")
EndIf

If WinExists("Found New Hardware Wizard", "WinDriver Virtual device") Then
   WinActivate("Found New Hardware Wizard", "")
   Send("!n")
EndIf

WinWait("Found New Hardware Wizard", "The wizard has finished installing the 
software for")
Send("{ENTER}")
--------------- AutoIt v3 Script ------------------------------------

Not perfect, but it works until I can find other solution.

Thanks
Paul


On Fri, Nov 26, 2004 at 06:01:46PM -0000, [EMAIL PROTECTED] wrote:
> Sorry, but I don't know - we are on the edges of my knowledge here :-(  It
> would be good to know how you get on though
> 
> Good luck
> 
> Kevin Lawry
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Paul
> Griffith
> Sent: 26 November 2004 16:26
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: RE: [Unattended] Automate - New Hardware Found Wizard -
> WinDriver
> 
> 
> That's something I can try, but is isn't this
> 
> > I tried adding c:\la2124 to the registry entry DevicePath located at
> >  HKLM\Software\Microsoft\Windows\CurrentVersion but that failed. I
> > was
> >  hoping that Windows XP would automatically seach in c:\la2124 and
> >  find the files it needs.
> >
> 
> the same thing ???
> 
> Thanks
> Paul
> 
> 
> On Thu, Nov 25, 2004 at 10:25:33PM -0000, [EMAIL PROTECTED] wrote:
> >
> > Have you tried dropping the drivers in the folder tree that you use to do
> > the unattended install, and have them listed in the driver path in
> > unattend.txt, nothing will happen at install time since the hardware does
> > not exist, but my guess is that once the hardware is detected those paths
> > will be scanned automatically when the OS looks for drivers.
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Paul
> > Griffith
> > Sent: 25 November 2004 18:02
> > To: [EMAIL PROTECTED]
> > Subject: [Unattended] Automate - New Hardware Found Wizard - WinDriver
> >
> >
> > Greetings,
> >
> > I have run into a problem that has left me scratching my head. Here is
> > the problem. I used AutoIt to install Logic Analyzer software which
> > installs Jungo WinDriver virtual device. After I reboot, Windows XP
> > detects the new virtual device and the New Hardware Found Wizard wants
> > me to point it to the software for the virtual device. If I manually
> > point the wizard to C:\la2124 it will find the files it needs
> > (oem1.inf I assume). It will then work correctly.
> >
> > Now the question is how can I eliminate the New Hardware Found Wizard?
> >
> > I tried adding c:\la2124 to the registry entry DevicePath located at
> >  HKLM\Software\Microsoft\Windows\CurrentVersion but that failed. I was
> >  hoping that Windows XP would automatically seach in c:\la2124 and
> >  find the files it needs.
> >
> > I also tried to simulate right click install on the file oem1.inf but that
> > failed.
> >
> > todo.pl "rundll32 \"syssetup,SetupInfObjectInstallAction DefaultInstall
> 128
> > %SystemDrive%\la2124\oem1.inf\""
> >
> >
> > Anyone have any suggestions?
> >
> > Thanks
> > Paul
> >
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://productguide.itmanagersjournal.com/
> > _______________________________________________
> > unattended-info mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/unattended-info
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> unattended-info mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/unattended-info
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now. 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> unattended-info mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/unattended-info

-- 
Paul Griffith     | York University, Dept. of Computer Science & Engineering
CSE Technical Team| 4700 Keele Street, Toronto, Ontario, Canada M3J 1P3
[EMAIL PROTECTED] | CSEB 1003A | Phone: 416-736-2100 x70258 | Fax: 416-736-5872


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to