![]() |
#1 |
Member
Join Date: Aug 2002
Location: Pune, India
Posts: 73
|
how to run hardware autodetection wizard
How to make the "harware detetction" start and make it scan for new hardware.
Running "devmgmt.msc" is one way but I still have to choose "scan for harware" from the menu. Is there any "proper" ![]() |
![]() |
![]() |
![]() |
#2 |
Junior Member
Join Date: Aug 2003
Posts: 26
|
Is this what you want?
Exec "$SYSDIR\hdwwiz.cpl" |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Mar 2004
Posts: 138
|
Exec "rundll32 shell32.dll,Control_RunDLL hdwwiz.cpl"
|
![]() |
![]() |
![]() |
#4 |
Member
Join Date: Aug 2002
Location: Pune, India
Posts: 73
|
thanks for the reply (both)
![]() ![]() What I had in mind was: 1. Start the "Device Manager" of Win2k/XP 2. Click on the COMPUTER icon (the root of the tree-view) 3. Click menu... Action > Scan for harware changes These three steps somehow automated!?! Any ideas ? ![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Join Date: Mar 2004
Posts: 138
|
|
![]() |
![]() |
![]() |
#6 |
Junior Member
|
Try this tool provided by microsoft:
FILE: DevCon Command Line Utility Alternative to Device Manager http://support.microsoft.com/default...NoWebContent=1 |
![]() |
![]() |
![]() |
#7 |
Junior Member
Join Date: Sep 2004
Location: New York City
Posts: 39
|
I have a bit of code that should do this for you. I'll convert it to NSIS script over the weekend.
jc3 |
![]() |
![]() |
![]() |
#8 |
Junior Member
Join Date: Sep 2004
Location: New York City
Posts: 39
|
As promised:
Function ScanForNewHW SetPluginUnload alwaysoff StrCpy $1 "" System::Call 'setupapi::CM_Locate_DevNodeA(*i .r0, t r1, i r2) i .r3' System::Call 'setupapi::CM_Reenumerate_DevNode(i r0, i r4) i .r5' SetPluginUnload manual System::Free 0 FunctionEnd I had some weirdness converting this but thanks to kichik I'm all sorted out. Also, I have a plugin that does the same thing if your interested. jc3 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|