Windows 8. Scan for Hardware Changes not working

Hi All

I am installing drivers for a USB device through an application. I
call SetupCopyOEMInf() in the application followed by
CM_Reenumerate_DevNode() to load the drivers. The device is plugged in
before running this application. This solution is working fine in all the
OS’s (WindowsXP, Vista and Windows7) but it doesn’t work in Windows 8
Release Preview. On Windows 8 release preview clicking on Scan for Hardware
Changes is not working. After the installation application finishes, I need
to unplug and re-plug the device to make the drivers load. What could
possibly be going wrong. Is this because it is still a Release Preview
version so might not have full fledged PnP functionality implemented as
opposed to a commercial release? Or is there any other factor I should be
aware of?

Thanks in advance.

Did you look at the setupapi.dev.log to see if the install was even attempted? Perhaps something is wrong with the INF. Consider using dpinst instead, installing it as driver package might yield better results.

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of sanjeev
Sent: Monday, August 20, 2012 9:52 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Windows 8. Scan for Hardware Changes not working

Hi All

I am installing drivers for a USB device through an application. I call SetupCopyOEMInf() in the application followed by CM_Reenumerate_DevNode() to load the drivers. The device is plugged in before running this application. This solution is working fine in all the OS’s (WindowsXP, Vista and Windows7) but it doesn’t work in Windows 8 Release Preview. On Windows 8 release preview clicking on Scan for Hardware Changes is not working. After the installation application finishes, I need to unplug and re-plug the device to make the drivers load. What could possibly be going wrong. Is this because it is still a Release Preview version so might not have full fledged PnP functionality implemented as opposed to a commercial release? Or is there any other factor I should be aware of?

Thanks in advance.
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Hello Doron. I saw the setupapi.dev. Drivers installation is being
attempted. But after the application finishes driver installation, clicking
“Scan for hardware changes” in the Device Manager is not loading the
installed drivers in Windows 8 while the same is working for all the other
OS’s upto Windows 7. If I then unplug the device and re-plug it, then the
drivers get loaded without any problem so there shouldn’t problem in the
INFs.

Thanks

On Tue, Aug 21, 2012 at 10:39 AM, Doron Holan wrote:

> Did you look at the setupapi.dev.log to see if the install was even
> attempted? Perhaps something is wrong with the INF. Consider using dpinst
> instead, installing it as driver package might yield better results.
>
>

>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] On Behalf Of sanjeev
> Sent: Monday, August 20, 2012 9:52 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Windows 8. Scan for Hardware Changes not working

>
> ****
>
> Hi All
>
>
**
>
> I am installing drivers for a USB device through an application. I
> call SetupCopyOEMInf() in the application followed by
> CM_Reenumerate_DevNode() to load the drivers. The device is plugged in
> before running this application. This solution is working fine in all the
> OS’s (WindowsXP, Vista and Windows7) but it doesn’t work in Windows 8
> Release Preview. On Windows 8 release preview clicking on Scan for Hardware
> Changes is not working. After the installation application finishes, I need
> to unplug and re-plug the device to make the drivers load. What could
> possibly be going wrong. Is this because it is still a Release Preview
> version so might not have full fledged PnP functionality implemented as
> opposed to a commercial release? Or is there any other factor I should be
> aware of?

>
> ****
>
> Thanks in advance.
>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer

>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

> Hello Doron. I saw the setupapi.dev. Drivers installation is being attempted

And why did it fail the first time?

d

debt from my phone


From: sanjeev
Sent: 8/21/2012 2:18 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Windows 8. Scan for Hardware Changes not working

Hello Doron. I saw the setupapi.dev. Drivers installation is being attempted. But after the application finishes driver installation, clicking “Scan for hardware changes” in the Device Manager is not loading the installed drivers in Windows 8 while the same is working for all the other OS’s upto Windows 7. If I then unplug the device and re-plug it, then the drivers get loaded without any problem so there shouldn’t problem in the INFs.

Thanks

On Tue, Aug 21, 2012 at 10:39 AM, Doron Holan > wrote:
Did you look at the setupapi.dev.log to see if the install was even attempted? Perhaps something is wrong with the INF. Consider using dpinst instead, installing it as driver package might yield better results.

From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.commailto:xxxxx] On Behalf Of sanjeev
Sent: Monday, August 20, 2012 9:52 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Windows 8. Scan for Hardware Changes not working

Hi All

I am installing drivers for a USB device through an application. I call SetupCopyOEMInf() in the application followed by CM_Reenumerate_DevNode() to load the drivers. The device is plugged in before running this application. This solution is working fine in all the OS’s (WindowsXP, Vista and Windows7) but it doesn’t work in Windows 8 Release Preview. On Windows 8 release preview clicking on Scan for Hardware Changes is not working. After the installation application finishes, I need to unplug and re-plug the device to make the drivers load. What could possibly be going wrong. Is this because it is still a Release Preview version so might not have full fledged PnP functionality implemented as opposed to a commercial release? Or is there any other factor I should be aware of?

Thanks in advance.
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>