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

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'))
    

Changelog

No changelog
    

manifest.sha256

[["avidemux_2.6.12_win32.exe", "fa743a163119fe15480e1fae1f289f03166ba8ab6ec93d5a5af99930c7bc9e9e"], ["WAPT/icon.png", "60b98b130391a602f576ff48d22e85bb19fbfc13a9f96301d5cc335c266a272a"], ["WAPT/certificate.crt", "20f25d6b242159077345379865f8e0d84bdc9e4764190f1aa6cb3816bcabd341"], ["WAPT/wapt.psproj", "bc34bb5f85d78dffc7effd37bd0639580a0e140c155973c04d79eb9aa31eb57a"], ["avidemux_2.6.12_win64.exe", "9381a3a2774c7480772cb57597b4f52568d1a3da25b14ed752b305ae011bde5b"], ["avidemux_2.6.8_win32_v2.exe", "7d92a105f821cd6c1e69b48d3b954c8b8201e35e11525666bfe272f024898d1a"], ["setup.py", "6b37e8d253f736f8bca7579bbe72bdc4cf2bc4e408dca230b7afd9e1e9755c8f"], ["WAPT/control", "69e9662183655dc3824c06c9ae36e2911528ddd8b32c7a358d6087c0640a12f5"]]