| 1 | = Installing an uninstalling the TAP-drivers = |
| 2 | |
| 3 | Occasionally you may have to try out different versions of the Windows TAP-driver. This can be done with ''<openvpn-install-dir\bin\tapinstall.exe''. This tool is actually renamed [http://support.microsoft.com/kb/311272 Devcon.exe]. |
| 4 | |
| 5 | It's fairly straighforward to use ''tapinstall.exe'' from a command-prompt. The <id> is an identifier which ''tapinstall.exe'' uses to detect the correct driver. In case of OpenVPN 2.2* it's ''tap0901''. This may be different in older/newer versions. To view information about an installer driver use |
| 6 | |
| 7 | {{{ |
| 8 | $ tapinstall.exe hwids <id> |
| 9 | }}} |
| 10 | |
| 11 | To uninstall a driver use: |
| 12 | |
| 13 | {{{ |
| 14 | $ tapinstall.exe remove tap0901 |
| 15 | }}} |
| 16 | |
| 17 | To install a new TAP-driver use |
| 18 | |
| 19 | {{{ |
| 20 | $ tapinstall.exe install <something.inf> <id> |
| 21 | }}} |
| 22 | |
| 23 | It's also possible to [wiki:BuildingOnWindows#ExtractingsignedTAP-driversfromanOpenVPNinstaller extract TAP-drivers from OpenVPN installer] without installing OpenVPN. |
| 24 | |
| 25 | = Extracting TAP-drivers from OpenVPN installers = |
| 26 | |
| 27 | If you need to run OpenVPN on Windows Vista/7 64-bit you have to use signed TAP drivers. Unless you sign them yourself, you need to do two extra steps: |
| 28 | |
| 29 | * Extract the TAP-drivers (*.cat, *.sys, *.inf) and ''tapinstall.exe'' from an official OpenVPN installer using [http://www.7-zip.org/ 7-zip]. The 64-bit versions are larger in size. |
| 30 | * Place 32-bit signed TAP drivers and corresponding ''tapinstall.exe'' to ''<openvpn-build-root>\tap-prebuilt\i386'' |
| 31 | * Place 64-bit versions to ''<openvpn-build-root>\tap-prebuilt\amd64'' |