tis-wireshark 2.0.1-2

  • package : tis-wireshark
  • version : 2.0.1-2
  • description : Wireshark TCP Packets analyzer (Wireshark development team)
  • maintainer : Hubert TOUVET, Amelie LE JEUNE
  • date : 2017-07-20 11:25:19
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-112517
  • min_os_version :
  • min_wapt_version :
  • Depends :

setup.py

# -*- coding: utf-8 -*-
from setuphelpers import *
import platform

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = ['Wireshark']

dlversion1 = '1.12.8'

dlversion2 = '2.0.1'

def install():
    # if you want to modify the keys depending on environment (win32/win64... params..)


 if platform.win32_ver()[0]=='XP' or platform.win32_ver()[0]=='2003Server':
        #1.12.8 is the last supported version on winXP
        if iswin64():
            install_exe_if_needed('Wireshark-win64-%s.exe'%dlversion1,'/S /quicklaunchicon=no','Wireshark',killbefore='wireshark')
        else:
            install_exe_if_needed('Wireshark-win32-%s.exe'%dlversion1,'/S /quicklaunchicon=no','Wireshark',killbefore='wireshark')

 else:
    if iswin64():
        install_exe_if_needed('Wireshark-win64-%s.exe'%dlversion2,'/S /quicklaunchicon=no','Wireshark',killbefore='wireshark')
    else:
        install_exe_if_needed('Wireshark-win64-%s.exe'%dlversion2,'/S','Wireshark',killbefore='wireshark')

""" def update_package():
    import glob
    for exe in glob.glob('Wireshark-*.exe'):
        remove_file(exe)
    wget('https://1.na.dl.wireshark.org/win32/all-versions/Wireshark-win32-%s.exe'%dlversion,'Wireshark-win32-%s.exe'%dlversion)
    wget('https://1.na.dl.wireshark.org/win64/all-versions/Wireshark-win64-%s.exe'%dlversion,'Wireshark-win64-%s.exe'%dlversion)

if __name__ == '__main__':
    update_package()
"""
    

manifest

[["WAPT/icon.png", "6dfe76ed4d4e35985d055c2a45a16dd0efe25830"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "575da1ee74ac6e8c12f437d8399530183e2347c5"], ["Wireshark-win32-2.0.1.exe", "7407cb02091e84f7f329782a5802f1b3b27d9ec9"], ["Wireshark-win64-1.12.8.exe", "390007f3a8b9272b02ec0e582363c80e9b7f2a3b"], ["WAPT/control", "d2767e2261a67c94f96224ca664247ea3f48f14b"], ["Wireshark-win32-1.12.8.exe", "f29629affdf09643c0dec192c4a666e599052263"], ["setup.py", "ad36d885d45a004c5a79fccbd1c836b465cbad43"], ["Wireshark-win64-2.0.1.exe", "27e290b4647adeb51a714d7a831ef88702b518da"]]