Identifying Network Adapters

Got a problem you cannot solve? Try here.
Post Reply
tj
Posts: 44
Joined: Tue Nov 04, 2008 9:38 am
Location: Atlanta, GA

Identifying Network Adapters

Post 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
ulrichard
Posts: 150
Joined: Thu Dec 27, 2007 5:45 am
Location: Switzerland
Contact:

Write a dll

Post 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
Post Reply