Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 17th February 2006, 05:24   #1
run2u
Junior Member
 
Join Date: Feb 2006
Posts: 3
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.

Last edited by run2u; 17th February 2006 at 05:43.
run2u is offline   Reply With Quote
Old 18th February 2006, 02:28   #2
run2u
Junior Member
 
Join Date: Feb 2006
Posts: 3
Anyone can help me? Or I will lose my job next month.
Thank you!
run2u is offline   Reply With Quote
Old 18th February 2006, 15:59   #3
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
sry, no idea
Comm@nder21 is offline   Reply With Quote
Old 19th February 2006, 02:03   #4
rmccue
Member
 
Join Date: Aug 2005
Location: Australia
Posts: 71
Try Devcon
http://support.microsoft.com/default...;EN-US;Q311272
rmccue is offline   Reply With Quote
Old 23rd February 2006, 08:39   #5
run2u
Junior Member
 
Join Date: Feb 2006
Posts: 3
Quote:
Originally posted by rmccue
Try Devcon
http://support.microsoft.com/default...;EN-US;Q311272
Thank you very much, I'll try soon.
run2u is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump