gugaliashashank
4th December 2007 11:32 UTC
How to add new Hardware from the script
I want to add Microsoft loop back adapter
To do this manually following steps are required
1.Open the "add hardware" wizard from the control panel.
2.Wait for it to search in vain for new hardware.
3.Tell it "yes, I've already connected my hardware" or the wizard will end...
4.Pick "add a new device" from the bottom of the list.
5.Don't let windows search for the hardware but choose it from a list ("Advanced").
6.Pick the category "Network adapters".
7.Choose "Microsoft loopback adapter".
I want to do this using NSIS script.
Is it possible?
kichik
4th December 2007 15:02 UTC
You could try one of the driver plug-ins from the wiki like InstDrv. It might be able to also setup the device itself. If not, you'll need to figure out which API needs to be called to add a network adapter and forge that into a plug-in or some System::Call calls.
onad
18th December 2007 16:46 UTC
Gugaliashashank you wonderd:
"How to add new Hardware from the script", well if you ever find out please let us know since I would also like this as a plugin
e.g.
myhardwarenow::gimmegimme('morememoryincurrentpc')
myhardwarenow::gimmegimme('ferrariinmydriveway')
myhardwarenow::gimmegimme('onebottlefwhiskeyonmytable')
Would be great and for sure NSIS popularity would rise even more...
:D
Without joking now, take a look at
http://support.microsoft.com/kb/839013
at the "Unattended" part, that might solve your issue.