tis-flashplayer

32.0.0.363-1
Adobe Flashplayer for Internet Explorer and other Firefox browsers
58216 downloads
Download

  Description 

  • package : tis-flashplayer
  • version : 32.0.0.363-1
  • architecture : all
  • categories : Internet,Media
  • maintainer : TIS <technique@tranquil.it>
  • description : Adobe Flashplayer for Internet Explorer and other Firefox browsers
  • locale : all
  • target_os : windows
  • min_os_version : 5.1
  • max_os_version :
  • min_wapt_version : 1.5
  • sources :
  • installed_size : 153677824
  • impacted_process : iexplorer.exe,firefox.exe
  • description_fr : Adobe Flashplayer pour Internet Explorer et autres navigateurs Firefox
  • description_pl : Adobe Flashplayer dla przegladarki Internet Explorer i innych przegladarek Firefox
  • description_de : Adobe Flashplayer für Internet Explorer und andere Firefox-Browser
  • description_es : Adobe Flashplayer para Internet Explorer y otros navegadores Firefox
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Adobe
  • licence :
  • signature_date : 2020-04-14T18:50:59.323000
  • Homepage : https://get.adobe.com/fr/flashplayer

  Setup.py 

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

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




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'],properties={'REMOVE_PREVIOUS':'Yes'})

        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'],properties={'REMOVE_PREVIOUS':'Yes'})

        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():

    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}

    """Update to current version from macromedia"""
    os.chdir(os.path.dirname(__file__))
    # find latest version
    try:
        import BeautifulSoup
    except:
        import bs4 as 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(),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(),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 


No changelog
  manifest.sha256 
[["install_flash_player_32_active_x.msi","65ff345b073fbb80e3cf6d1f691b2e75c96bb551e6bb8997be7c0585f9b4c2c7"],["WAPT/icon.png","8de118d7a6cc80877940d13927f1eded7a31bb8d4376cd8eb70b5a2e899d2aa3"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","510d3af6fcf8f2eae5db684bb830ea9845576e76872b9b10854efaea6e4a4cd8"],["mms.cfg","490a4a0df021a58b3656609542e367af5997a0a3c7fcb0c1ae00a8f5c41ae17a"],["install_flash_player_32_plugin.msi","e263f4b16105e46b6304dab9c734f8d49ea6d4e95e41836235dfda4601dec083"],["setup.py","aa46fa6e93396c06a9c737443822b8fe4c529817044c08958af36c6c8a19cc71"],["uninstall_flash_player.exe","81e6911b7358f852f463c9238e868fc0456c5dc499ff60fee2490dcd0c321300"],["WAPT/control","b8c053266f0bdaaa1a4ea68679ec73ecfe2c74aec8c06dd8cdd649bb89e33e46"],["Jenkinsfile","54e5f5b903f9666bc53163cb7db7928f52d116f868371bcc52bcce9f74ee3acc"]]