Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   IpConfig plugin (http://forums.winamp.com/showthread.php?t=307666)

jpderuiter 24th June 2009 19:21

IpConfig plugin
 
I created a plugin that could query all kinds of network info using WMI calls.
At first I tried to use the WmiInspector plugin, but not all info could be retrieved (mainly because arrays are not supported in this plugin).
Instead of adapting this plugin I decided to make a new plugin based on the WmiInspector plugin, with dedicated functions.
You can find the plugin, info and examples here:
http://nsis.sourceforge.net/IpConfig_plugin

The info you can retrieve is mainly the same info you can get using the MS shell command ipconfig /all.
Additionally you can request a Network adapter ID from some parameters, like IP address or MAC address.
You can use this to get for example the MAC address for a given IP address.

Because each request starts a new WMI request, retrieving a lot of info makes the installer slow
(like with the IpConfig /all example).
But since most of the time only one type of info is required, this shouldn't be a problem.

A Unicode version is included as well.

JPdeRuiter

nsisadmin 15th November 2010 04:37

Looks like IpConfig plugin is not working with windows XP. I have copied the IpConfig.dll file to the <Install Dir>/plugin directory. Does it required any other configuration changes?

jpderuiter 15th November 2010 07:11

It should be working.

What's not working?
Error messages?

MSG 15th November 2010 09:01

The dll should be in NSIS\Plugins, not $INSTDIR\plugin.

pkonduru 7th April 2016 22:02

I had a discussion going in an another thread for an issue we were seeing today with our installer. Our installer was hung at the place where we use the ipconfig plugin. We had to kill the install after 2 hours. Tried reproducing on same machine again but were not successful.
SetShellVarContext all
SetOutPath $INSTDIR
IpConfig::GetHostName
Pop $0
Pop $R0
IpConfig::GetPrimaryDNSSuffix
Pop $0
Pop $R1


All times are GMT. The time now is 17:18.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.