Tranquil IT recrute Tranquil IT recrute

tis-flashplayer

Version : 32.0.0.101-2

Download
  • package : tis-flashplayer
  • editor : Adobe
  • version : 32.0.0.101-2
  • licence :
  • architecture : all
  • locale : all
  • description : Adobe Flash Player software for your Windows, to enjoy stunning audio/video playback, and exciting gameplay.
  • description_fr : Adobe Flashplayer pour Internet Explorer et autres navigateurs Firefox
  • min_os_version : 5.1
  • max_os_version :
  • min_wapt_version : 1.5
  • installed_size : 153677824
  • impacted_process : iexplorer.exe,firefox.exe
  • signature_date : 20181205-141545
  • maintainer : TIS <technique@tranquil-it-systems.fr>

setup.py

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

# uninstall key retrieved from msi properties with 'ProductCode' key. See below
uninstallkey=[]


proxies = {}
if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
    proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
    if proxywapt :
        proxies = {'http':proxywapt,'https':proxywapt}

def install():

    waptversion = Version(__version__)

    if waptversion > Version('1.5') :

        diskfreespacebefore = get_disk_free_space(programfiles)

        for uninstall in installed_softwares('Adobe Flash Player'):
            if not 'MsiExec.exe' in uninstall['uninstall_string'] :
                if uninstall_key_exists(uninstall['key']):
                    run_notfatal('"uninstall_flash_player.exe" -uninstall')


        print("Installing flash for firefox")
        major_version = control.version.split('.',1)[0]
        install_msi_if_needed('install_flash_player_%s_plugin.msi'%major_version,killbefore=['firefox.exe','chrome.exe'])

        print("Installing flash for internet explorer if < win10")
        if windows_version()<Version('6.2.0'):
            install_msi_if_needed('install_flash_player_%s_active_x.msi'%major_version,killbefore=['iexplore.exe'])

        print("Disable autoupdate")
        if iswin64():
            filecopyto("mms.cfg",makepath(os.environ['SYSTEMROOT'],"SysWOW64","Macromed","Flash"))
        else:
            filecopyto("mms.cfg",makepath(os.environ['SYSTEMROOT'],"System32","Macromed","Flash"))

        for task in ('Adobe Flash Player Updater',"Adobe Flash Player PPAPI Notifier"):
            if task_exists(task):
                delete_task(task)

        if service_installed('AdobeFlashPlayerUpdateSvc'):
            if service_is_running('AdobeFlashPlayerUpdateSvc'):
                service_stop('AdobeFlashPlayerUpdateSvc')
            run('sc delete AdobeFlashPlayerUpdateSvc')

        diskfreespaceafter = get_disk_free_space(programfiles)
        difffreespace = diskfreespacebefore - diskfreespaceafter
        print(ur"Espace disque necessaire pour l'installation : " + str(difffreespace))

    else:
        error('This package is not compatible with your WAPT version. Please upgrade to WAPT 1.5 or more.')


def update_package():
    """Update to current version from macromedia"""
    os.chdir(os.path.dirname(__file__))
    # find latest version
    import requests,BeautifulSoup
    page = wgets('https://get.adobe.com/fr/flashplayer',user_agent='Mozilla/5.0 (Windows NT 6.1; Win64; x64)',proxies=proxies)
    bs = BeautifulSoup.BeautifulSoup(page)
    latest_version = bs.find(id="autoSelectedVersion").find(id="AUTO_ID_columnleft_p_version").text.replace('Version','').strip()
    print('Latest version: %s' % latest_version)

    major_version = latest_version.split('.',1)[0]

    allmsi = glob.glob('*.msi')
    for msi in allmsi:
        vers = get_msi_properties(msi)['ProductVersion']
        if vers != latest_version :
            remove_file(msi)

    if not isfile('install_flash_player_%s_active_x.msi' % major_version ) :
        wget('https://download.macromedia.com/get/flashplayer/pdc/%s/install_flash_player_%s_active_x.msi' % (latest_version,major_version),os.getcwd(),user_agent='Mozilla/5.0 (Windows NT 6.1; Win64; x64)',proxies=proxies)
    if not isfile('install_flash_player_%s_plugin.msi' % major_version ) :
        wget('https://download.macromedia.com/get/flashplayer/pdc/%s/install_flash_player_%s_plugin.msi'  % (latest_version,major_version),os.getcwd(),user_agent='Mozilla/5.0 (Windows NT 6.1; Win64; x64)',proxies=proxies)

    #if not isfile('install_flash_player_%s_ppapi.msi' % major_version ) :
    #    wget('https://download.macromedia.com/get/flashplayer/pdc/%s/install_flash_player_%s_ppapi.msi'  % (latest_version,major_version),os.getcwd())

    wget('https://fpdownload.macromedia.com/get/flashplayer/current/support/uninstall_flash_player.exe' ,os.getcwd(),proxies=proxies)

    # change version of package
    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    pe.version = get_msi_properties('install_flash_player_%s_active_x.msi' % major_version)['ProductVersion']+'-0'
    pe.save_control_to_wapt(os.getcwd())

if __name__ == '__main__':
    update_package()
			

Changelog

"""{% trans %}No changelog.{% endtrans %}"""
			

manifest.sha256

[["install_flash_player_32_active_x.msi", "5c28bff447e24fed3aebe12a530fafdbaa3b2cffa3fc8abce8bbec461cd1a951"], ["WAPT/icon.png", "8de118d7a6cc80877940d13927f1eded7a31bb8d4376cd8eb70b5a2e899d2aa3"], ["WAPT/certificate.crt", "13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779"], ["WAPT/wapt.psproj", "df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7"], ["mms.cfg", "490a4a0df021a58b3656609542e367af5997a0a3c7fcb0c1ae00a8f5c41ae17a"], ["install_flash_player_32_plugin.msi", "d5ae1856a3edea73488fcbef8516cde111c1d59820d518ee7ff135a03065a4a1"], ["setup.py", "6439f3f22237d961d4f8e1b6c21a35913ea217f923d0409a5c9554b5a1364bba"], ["uninstall_flash_player.exe", "28acd9f0821134a58db880f871d98a53b64b4f65c9de81548b5475dc6cdb412a"], ["WAPT/control", "2a8f7b721290b7645c76431734cf04a67a75ebf0ef54b9177fd87f13094878b5"]]