tis-firefox-esr 60.4.0-2

  • package : tis-firefox-esr
  • version : 60.4.0-2
  • architecture : x86
  • locale : fr
  • description : Navigateur Web Firefox ESR extended support - French
  • maintainer : Simon Fonteneau
  • date : 2018-12-12 09:42:30
  • min_wapt_version : 1.5.1.20
  • min_os_version : 6.1
  • max_os_version :
  • impacted_process : firefox.exe

setup.py

# -*- coding: UTF-8 -*-
import subprocess
from setuphelpers import *
import time

uninstallkey = []

def install():
    """ You can do a CTRL F9 in pyscripter to update the package """
    softname = 'Mozilla Firefox'
    versionsoft = control['version'].split('-',1)[0]

    check_installed = installed_softwares(softname)
    diskfreespacebefore = get_disk_free_space(programfiles)

    if check_installed:
             for uninstall in check_installed:
                   if not 'ESR' in uninstall['name'] :
                        print(u'remove Firefox not ESR' )
                        if uninstall_key_exists(uninstall['key']):
                            killalltasks('firefox.exe')
                            cmd = WAPT.uninstall_cmd(uninstall['key'])
                            run(cmd)
                            time.sleep (5)


    print("Installing Firefox ESR file")

    key='Mozilla Firefox %s ESR (x86 fr)' % versionsoft
    install_exe_if_needed('Firefox Setup %sesr.exe' % versionsoft,silentflags='-ms',key=key ,min_version=versionsoft,killbefore=['firefox.exe'])

    create_desktop_shortcut('Firefox',makepath(programfiles,'Mozilla Firefox','firefox.exe'))

    for mms in installed_softwares('MozillaMaintenanceService'):
        if uninstall_key_exists(mms['key']):
            run(uninstall_cmd(mms['key']))

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


def update_package():
    """ You can do a CTRL F9 in pyscripter to update the package """
    import re,requests,urlparse,glob

    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}

    url = requests.head('https://download.mozilla.org/?product=firefox-esr-latest&os=win&lang=fr',proxies=proxies).headers['Location']
    filename = urlparse.unquote(url.rsplit('/',1)[1])

    if not isfile(filename):
        print('Downloading %s from %s'%(filename,url))
        wget(url,filename,proxies=proxies)


    exes = glob.glob('*.exe')
    for fn in exes:
        if fn != filename:
            remove_file(fn)

    # updates control version from filename, increment package version.
    control = PackageEntry().load_control_from_wapt ('.')
    control.version = '%s-0'%(re.findall('Firefox Setup (.*)esr\.exe',filename)[0])
    control.save_control_to_wapt('.')

if __name__ == '__main__':
    update_package()
    

Changelog

No changelog
    

manifest.sha256

WAPT/icon.png a121b0f2957a4a50da46b9ce251efbbd9d1ec7a66669c72ad4032547ec840c40
WAPT/certificate.crt 13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779
WAPT/wapt.psproj df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7
Firefox Setup 60.4.0esr.exe 95ad6af9e90de306b43116150d94838e10ef8c284564ccd6dc018bea0f11c613
setup.py 21f4ff638bf9e6a56021e41bf431b8397b756e2793f9c71e7cad9f3ee3c260ce
WAPT/control 72d7d1f5a34558d1830e0f2107e2b4684d52d6f24167f31b842bbf3a62ae3e52

Forum feed

WAPT Packages / Paquets WAPT • Re: Date - base de registre

CODE :

from setuphelpers import *import timedef install():    registry_setstring(HKEY_LOCAL_MACHINE, r'SOFTWARE\APPLILOC\FireFox ESR Portable', 'InstallDate' ,  time.strftime('%Y%m%d') , type=REG_SZ)

Statistiques: Publié par htouvet — 10 janv. 2019 - 18:03


WAPT Packages / Paquets WAPT • Re: Tester si un paquet est intallé

CODE :

def install():    if WAPT.is_installed('tis-firefox'):       print(u'Paquet firefox installé')

Statistiques: Publié par htouvet — 10 janv. 2019 - 17:25


WAPT Packages / Paquets WAPT • Date - base de registre
Bonjour,
Je suis plus que newbie sur wapt, alors excusez ma question ...;-)
Comment écrie la date du jour dans la base de registre ?
J'ai écrit cette ligne, mais c'est KO

CODE :

registry_setstring(HKEY_LOCAL_MACHINE, r'SOFTWARE\APPLILOC\FireFox ESR Portable', 'InstallDate' , datetime, type=REG_SZ)
J'ai essayé d'ajouter :

CODE :

import datetimedate = datetime.date.now()str(date)
Merci d'avance à tous ceux qui voudront bien m'aider !
Gilles

Statistiques: Publié par gillesr13 — 03 janv. 2019 - 15:35