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 : 2016-01-28 19:52:39
  • signer :
  • signature_date :
  • 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

[
 [
  "setup.py", 
  "ad36d885d45a004c5a79fccbd1c836b465cbad43"
 ], 
 [
  "WAPT\\control", 
  "88fb7da76e3155423a58779405ba720f9728bd55"
 ], 
 [
  "WAPT\\icon.png", 
  "6dfe76ed4d4e35985d055c2a45a16dd0efe25830"
 ], 
 [
  "WAPT\\wapt.psproj", 
  "575da1ee74ac6e8c12f437d8399530183e2347c5"
 ], 
 [
  "Wireshark-win32-1.12.8.exe", 
  "f29629affdf09643c0dec192c4a666e599052263"
 ], 
 [
  "Wireshark-win32-2.0.1.exe", 
  "7407cb02091e84f7f329782a5802f1b3b27d9ec9"
 ], 
 [
  "Wireshark-win64-1.12.8.exe", 
  "390007f3a8b9272b02ec0e582363c80e9b7f2a3b"
 ], 
 [
  "Wireshark-win64-2.0.1.exe", 
  "27e290b4647adeb51a714d7a831ef88702b518da"
 ]
]