Just adding that the same logic applies, no matter what your chosen deployment system. I use WPKG, so it's mostly a matter of adding an additional <uninstall> command that points to the relevant Program Files (x86) directory.
And especially when you're looking at changing (software) architectures from x86 to x64, there are use cases where somebody might want to have BOTH versions installed so you'll have to manually account for the removal of the different architecture (or locations, so have fun with the personal-builds/portable installations in the %LOCALAPPDATA%). Personally, if you're upgrading from a _very_ old version of 32-bit FF, I'd stick with the 32-bit ESR until it is no longer available (FF59?). IIRC, beyond legacy stability, be aware that x64 ESR does not support NPAPI plugins like Java. Kris Lou [email protected] On Sat, Nov 11, 2017 at 9:31 AM, Alexandre GAUVRIT < [email protected]> wrote: > Hi, > > What solution do you use to deploy software ? > > I use WAPT which is an open-source client-server solution to deploy > softwares. > > Softs are packaged using a Python framework where you can uninstall any > existing Firefox installs before installing the latest good version. > > Here is sample code you can write in your WAPT Firefox package to handle > this > > def install(): > > softname = 'Mozilla Firefox' > versionsoft = control['version'].split('-',1)[0] > > check_installed = installed_softwares(softname) > > if check_installed: > for uninstall in check_installed: > if not 'ESR' in uninstall['name'] : > print(u'remove Firefox not ESR' ) > killalltasks('firefox.exe') > cmd = WAPT.uninstall_cmd(uninstall['key']) > run(cmd) > time.sleep (5) > if iswin64(): > if 'x86' in uninstall['name'] : > print(u'remove Firefox x86 for install firefox x64' ) > killalltasks('firefox.exe') > cmd = WAPT.uninstall_cmd(uninstall['key']) > run(cmd) > time.sleep (5) > > print("Installing Firefox ESR") > > if iswin64(): > key='Mozilla Firefox %s ESR (x64 fr)' % versionsoft > install_exe_if_needed('Firefox Setup %sesr_x64.exe' % versionsoft > ,silentflags='-ms',key=key > ,min_version=versionsoft,killbefore=['firefox.exe']) > else: > 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']) > > > Works perfectly for me and many people i know using that solution : > https://www.wapt.fr/en/ > > Alexandre > > 2017-11-09 22:27 GMT+01:00 Arthur <[email protected]>: > >> I have a user with Firefox v28x installed @ C:\Program Files >> (x86)\Mozilla Firefox.I deployed Firefox v52.4.1 ESR which installed @ >> C:\Program Files\Mozilla Firefox. Version 28x @ C:\Program Files >> (x86)\Mozilla Firefox did NOT uninstall. Version 28x is still listed under >> Programs and Features. >> >> How can I deploy this version and ensure all older version are >> uninstalled or at least upgraded? >> >> I also have some users that have Firefox installed @ >> C:\Users\<username>\AppData\Local\Mozilla Firefox. How can I uninstall >> that type of a install also to ensure only one version exists? >> >> -Arthur >> >> _______________________________________________ >> Enterprise mailing list >> [email protected] >> https://mail.mozilla.org/listinfo/enterprise >> >> To unsubscribe from this list, please visit >> https://mail.mozilla.org/listinfo/enterprise or send an email to >> [email protected] with a subject of "unsubscribe" >> > > > _______________________________________________ > Enterprise mailing list > [email protected] > https://mail.mozilla.org/listinfo/enterprise > > To unsubscribe from this list, please visit https://mail.mozilla.org/ > listinfo/enterprise or send an email to [email protected] > with a subject of "unsubscribe" >
_______________________________________________ Enterprise mailing list [email protected] https://mail.mozilla.org/listinfo/enterprise To unsubscribe from this list, please visit https://mail.mozilla.org/listinfo/enterprise or send an email to [email protected] with a subject of "unsubscribe"

