How can I detect whether the device is plugged in or not when installing a driver?
I'm a newbie at all, anyone could help me? Thanks in advance.
I'm developing a PNP driver installer using the NSIS, it needs to disconnect the device from the PC before installing the driver, and when the driver installed, a notify page will be displayed asking to connect the device and then the device will be recognised, after that install other commercial softwares. It means that the device is something of a hardware softdog.
The question is, by using the NSIS script, how can I detect whether the device is plugged in or not before or after the installation of the driver?
Assumeing the GUID is "{4d36e978-e325-11ce-bfc1-08002be10318}", HwID is "USB\VID_92DF$PID_23BB", INF is "test.inf", InfPath is "$INSTDIR\TestApp".
Thank You
Best Regards.