tis-openvpn 2.3.10-11

  • package : tis-openvpn
  • version : 2.3.10-11
  • description : Client Openvpn et application GUI openvpn-mi-gui pour permettre la modification de routes sans droits privilégiés
  • maintainer : Hubert TOUVET
  • date : 2017-07-20 15:55:52
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-155552
  • min_os_version :
  • min_wapt_version :

setup.py

# -*- coding: utf-8 -*-
import setuphelpers
import shutil
from setuphelpers import *
import glob,platform,os
import winshell

uninstallkey = []

def install():
    openvpn_dir = os.path.join(programfiles,'OpenVPN')
    openvpn_config = os.path.join(openvpn_dir,'config')
    openvpn_bin = os.path.join(openvpn_dir,'bin')

    print('Register OpenVPN as a trusted publisher')
    try:
        run(r'certutil.exe -addstore trustedpublisher openvpn-editor-cert.p7b')
    except:
        run(r'certutil\certutil.exe -addstore trustedpublisher openvpn-editor-cert.p7b')

    print('installing openvpn client')
    if windows_version() < Version('6.0.0'):
        variante = 'I002'
    else:
        variante = 'I602'

    # check firewall rules :
    """
    try:
        try:
            openvpn_fw = run('netsh advfirewall firewall show rule name="Openvpn daemon" verbose')
        except:
            run(r'netsh advfirewall firewall add rule name="OpenVPN daemon" dir=out  action=allow  description="OpenVPN Daemon" profile=any program="c:\Program Files\OpenVPN\bin\openvpn.exe"')
    except Exception as e:
        print('Erreur firewall: %s'%e)
    """
    if not installed_softwares(uninstallkey='TAP-Windows'):
        uninstallkey.append('TAP-Windows')

    if iswin64():
        install_exe_if_needed('openvpn-install-2.3.10-%s-x86_64.exe' % variante,'/S',key='OpenVPN',min_version='2.3.10-I602',killbefore=['openvpn','openvpn-gui'])
    else:
        install_exe_if_needed('openvpn-install-2.3.10-%s-i686.exe' % variante,'/S',key='OpenVPN',min_version='2.3.10-I602',killbefore=['openvpn','openvpn-gui'])
    # this need to be customized...
    #filecopyto('client.ovpn',openvpn_config)
    #filecopyto('client.p12',openvpn_config)
    print('A reboot of the computer may be needed to release the TAP adapter')

    

manifest

[["openvpn-install-2.3.10-I002-x86_64.exe", "ed5c919bd2ff5ebef67e2d1c5b3ea8ae529ad4e9"], ["openvpn-editor-cert.p7b", "35797ea99075ea0d465bc26d06d55eb186110bb4"], ["openvpn-install-2.3.10-I602-i686.exe", "90e2118dd61c4003c977d58cd15175e68d4f7a68"], ["tap-windows.exe", "f74c6c5212bcb9b801b3aec6ae8aac9651b212b6"], ["certutil/readme.txt", "e1dca6fb049a2b6856fff4626d42554e6b3af318"], ["client.ovpn", "0cf76aa8e1d66c70f0cec0ca8c7654c0f888000b"], ["client.p12", "cb9ac3425a09ee681ca37cb9f0e3552743328acc"], ["certutil/certcli.dll", "72d849c4c7416920ae1c5958f70a705d249c6431"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["certutil/certutil.exe", "5746c14fe1790a18b76cc9833f93bc72937aca72"], ["certutil/certadm.dll", "ed8aa12a00e93c1a477f4ef69864948b4014a7fb"], ["setup.py", "0efa210504fed90e2e469d4dd21470e85432a734"], ["openvpn-install-2.3.10-I002-i686.exe", "eebeb059913fd7e581626c9cf1fba0f3f5ca3395"], ["WAPT/wapt.psproj", "599f96c017259f4ead2d36bf7e1d38da4c77d78f"], ["WAPT/control", "9e86c41a91f2b7dff9a72f260b74f734b582620b"], ["openvpn-install-2.3.10-I602-x86_64.exe", "8d860c6d83b13872584a0a6a3489ab8491d64897"]]