Page 1 of 1
Identifying Network Adapters
Posted: Tue Nov 11, 2008 10:22 am
by tj
When installing on a computer with more than one network adapter, I need to let the user choose which adapter to use. Ideally, I'd like to load them into a drop down box and let the users pick from the list.
I haven't found an MSIcode tool that can provide this info. Any recommendations?
Thanks,
tj
Write a dll
Posted: Wed Nov 12, 2008 4:01 am
by ulrichard
Hi tj,
looks like you have to write a custom dll with a function that returns the desired information.
Do you want to select a physical adapter or just an IP address?
If it's the later, this page might help you:
http://tangentsoft.net/wskfaq/examples/ipaddr.html
Return a string with the adapters separated by $NEWLINE$
Use the variable that received this information as input to the dropdown combo. To do so, enter you r variable name as $MyAdapters$ into the items property of the combo box in the dialog designer.
Rgds
Richard