I'm working on an NSIS-based installer that deploys software which uses a LAN9512-based USB-to-ethernet NIC.
When I attach said NIC to a new system, it's possible that Windows will automagically find its drivers, but on some Win10 systems, I've observed a failure to find the drivers, so I install the official vendor drivers as part of the procedure, prior to connecting the device.
Once the device drivers are installed, Windows configures the NIC for DHCP by default. I would like it to have a static IP address instead, as the first configuration it ever uses.
Is it possible to provide an additional file, or modify something ( eg. the .INF file that sometimes accompanies driver bundles ) in order to tell Windows to pre-configure the device with a static IP?
The installation will occur with elevated privileges as an NSIS-based installer is executed, but if the user doesn't have the device available to plug in, the NIC won't yet appear on the system, so assume it won't be possible to use 'netsh' to configure it during installation, and in future, when the device is plugged in ( after the installer has run, and elevation has been rescinded ), it will be too late to do it without elevating again ( which I'm trying to avoid ).
Target systems are unlikely to need reconfiguration, and USB-based NICs keep their configurations between replugs, so pre-configuration is key here.