Automated Windows installer

Рысь lynx at lynxlynx.tk
Sat Oct 17 16:44:46 CEST 2015


On Sat, 17 Oct 2015 14:54:17 +0200
Guus Sliepen <guus �� tinc-vpn.org> wrote:

> On Sat, Oct 17, 2015 at 02:54:01PM +0700, Рысь wrote:
> 
> > The problem starts with Windows itself. We have tap-win{32,64}
> > directories. Inside them, there is a few batch files and
> > tapinstall.exe binary. It actually performs installation process of
> > TAP driver and new interface.
> > 
> > And that's it: I can't safely rename interface from installer batch
> > file. If it comes with name "Local Area Connection", then I can
> > rename it. But if user has many unrenamed "Local Area
> > Connection"'s? And localization issues: in Russia, it's always
> > "Подключение по локальной сети". And OS can append a number if
> > there multiple ones.
> > 
> > I can't link which interface belongs to which adapter: newly
> > created, physical or virtual, TAP or VMWare and so on.
> 
> Have a look in src/mingw/device.c setup_device(). If you don't
> specify a Device or Interface in tinc.conf, it will use the first
> available TAP innterface. It finds it by going through the registry
> to find adapters, and then tries to open \\\\.\\Global\\<adapter
> id>.tap. If the latter succeeds, it means it's a free TAP interface.
> 

Okay I see it, thanks! Usually my Windows nodes have no many TAP
devices on their boxes, that's what I need.

I will try that and will report my success there.

-- 
http://lynxlynx.tk/
Power electronics made simple
Unix and simple KISS C code


More information about the tinc mailing list