tis-avidemux 2.6.12-1

  • package : tis-avidemux
  • version : 2.6.12-1
  • description : Avidemux A free video editor to cut, filter, and encode projects
  • maintainer : Jérémie MOTTE, Amelie LE JEUNE
  • date : 2017-07-20 15:50:06
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-155005
  • min_os_version :
  • min_wapt_version :

setup.py

# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
#    This file is part of WAPT
#    Copyright (C) 2013  Tranquil IT Systems http://www.tranquil.it
#    WAPT aims to help Windows systems administrators to deploy
#    setup and update applications on users PC.
#
#    WAPT is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    WAPT is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with WAPT.  If not, see <http://www.gnu.org/licenses/>.
#
# -----------------------------------------------------------------------
from setuphelpers import *
import platform

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

# command(s) to launch to remove the application(s)
uninstallstring = []

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':
        #2.6.0 is the last supported version on winXP
        print('installing avidemux for winXP')
        install_exe_if_needed('avidemux_2.6.8_win32_v2.exe','/S',min_version='2.6.8.0',killbefore='avidemux.exe', accept_returncodes=[0,1223])
    else:
        print('installing tis-avidemux')
        if iswin64():
            install_exe_if_needed('avidemux_2.6.12_win64.exe', '/S', min_version='2.6.12', killbefore='avidemux.exe', accept_returncodes=[0,1223])
        else:
            install_exe_if_needed('avidemux_2.6.12_win32.exe', '/S', min_version='2.6.12', killbefore='avidemux.exe', accept_returncodes=[0,1223])


def uninstall():
        if platform.win32_ver()[0]=='XP' or platform.win32_ver()[0]=='2003Server':
        #2.6.0 is the last supported version on winXP
            print('removing avidemux for winXP')
            run('"%s" %s ' % (makepath(programfiles64, 'Avidemux 2.6', 'uninstall.exe'),'/S'))
        else:
            print('Removing Avidemux')
            if iswin64():
                run('"%s" %s ' % (makepath(programfiles64, 'Avidemux 2.6 - 64 bits', 'uninstall.exe'),'/S'))
            else:
                run('"%s" %s ' % (makepath(programfiles32, 'Avidemux 2.6 - 32 bits', 'uninstall.exe'),'/S'))
    

manifest

[["avidemux_2.6.12_win32.exe", "4dd50a4ac626d148d572e238c20302b01a4a1e47"], ["WAPT/icon.png", "77b11bad917818566d1ff562d933e6fb5d6611e7"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "d140401965341ede69880cd6342c5db7040324b2"], ["avidemux_2.6.12_win64.exe", "8f59be7ac8c652851a23a67de16cd3c4e72e5b9a"], ["avidemux_2.6.8_win32_v2.exe", "dbc66b00fadb65c9094741593582450b8518b09a"], ["setup.py", "47ddf3501470a42d5dcba923c9e32014cbb0d499"], ["WAPT/control", "657a2679d491ecbcbf549a878d41f5c1b31a5750"]]