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" :) method ?
Archive: how to run hardware autodetection wizard
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" :) method ?
Is this what you want?
Exec "$SYSDIR\hdwwiz.cpl"
Exec "rundll32 shell32.dll,Control_RunDLL hdwwiz.cpl"
thanks for the reply (both) :) ...but this starts the "Add new hardware wizard". :)
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 ? :(
A instdrv Plugins may help you.
http://nsis.sourceforge.net/archive/...le=instdrv.zip
Try this tool provided by microsoft:
FILE: DevCon Command Line Utility Alternative to Device Manager
http://support.microsoft.com/default...NoWebContent=1
I have a bit of code that should do this for you. I'll convert it to NSIS script over the weekend.
jc3
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