Page 1 of 1
Firefox packages
Published: January 27, 2017 - 07:07
by gaelds
Hello,
Apparently Firefox 52 will be the last version compatible with XP. I'm currently using a dst-firefox package for XP and Win7. Would it be a good idea, in your opinion, to adapt Simon Fonteneau's "all-in-one-package" to recreate this dst-firefox package? Depending on the detected OS, I would include the installation of "dst-firefox-stable" for Win7 and later, and the installation of "dst-firefox-esr" for XP/Vista. I suppose I would need to uninstall Firefox 52 on XP before installing the ESR version.
Alternatively, is there a better way to keep Firefox up-to-date on XP PCs?
https://wapt.lesfourmisduweb.org/detail ... 4_all.wapt
Re: Firefox packages
Published: January 27, 2017 - 10:25 AM
by sfonteneau
One of the solutions that can be implemented is indeed a somewhat all-in-one-package solution.
Something like that.
Code: Select all
if windows_version() <= Version('5.2') :
if WAPT.is_installed('tis-firefox-esr'):
WAPT.forget_packages('tis-firefox-esr')
WAPT.install('tis-firefox-esr-xp')
else:
WAPT.install('tis-firefox-esr')
It's also good to know that in the new version of WAPT, certain fields will be supported, which will greatly simplify management:
https://www.wapt.fr/fr/doc/CreationPaqu ... os-version
Re: Firefox packages
Published: March 28, 2017 - 3:05 PM
by gaelds
I've prepared a sort of meta-package called "dst-firefox" which will replace the current dst-firefox, which is the stable version of Firefox. Before uploading it and potentially causing problems on many PCs, could you tell me if this code seems correct?
Code: Select all
# -*- coding: UTF-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
# Je déclare cette fonction pour indiquer de ne pas basculer le paquet "manage-my-wapt" en erreur si une erreur survient lors du lancement de WAPT.install(nompackage) et donc continer le script
def action_for_wapt_package(nompackage,action='install'):
if action == 'install':
if WAPT.is_available(nompackage) :
try :
WAPT.install(nompackage)
except:
pass
else :
error("%s is unavailable" % nompackage)
if action == 'remove':
try :
WAPT.remove(nompackage)
except:
pass
if action == 'forget':
if WAPT.is_installed(nompackage) :
WAPT.forget_packages(nompackage)
# Récupération du préfix du package et je stock la variable dans prefixpkg, je ne connai pas votre préfix et je suppose donc que votre préfix est le même que celui de manage-my-wapt
prefixpkg = control.package.split('-',1)[0]
# Si la version de windows est inférieur à Win 7, on installe firefox-esr, sinon firefox-stable
if windows_version()<Version('6.0'):
action_for_wapt_package('%s-firefox-esr'% prefixpkg, action='install')
action_for_wapt_package('%s-firefox-stable'% prefixpkg, action='install')
def uninstall():
if windows_version()<Version('6.0'):
action_for_wapt_package('%s-firefox-esr'% prefixpkg, action='remove')
action_for_wapt_package('%s-firefox-stable'% prefixpkg, action='remove')
I don't know if the uninstall part is necessary?
Re: Firefox packages
Published: March 28, 2017 - 5:23 PM
by sfonteneau
There is no else:
Code: Select all
if windows_version()<Version('6.0'):
action_for_wapt_package('%s-firefox-esr'% prefixpkg, action='install')
action_for_wapt_package('%s-firefox-stable'% prefixpkg, action='install')
Re: Firefox packages
Published: March 29, 2017 - 08:14
by gaelds
Thank you so much! I'm glad I asked because I hadn't noticed that error at all.