Hello,
We've been using WAPT for a while now. I recently updated our computer fleet with the latest version of Thunderbird (version 52). Unfortunately, during this update, I didn't notice a problem with a SOGO connector.
I'm looking for a way to revert the workstations to Thunderbird 45 without losing profiles.
Is this possible with WAPT?
Thanks in advance.
Dylan
downgrad Thunderbird
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is provided on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version (1.8.2 / 2.0 / 2.1 / 2.2 / etc.) AS WELL AS the Enterprise / Discovery edition.
* Specify the server OS (Linux / Windows) and version (Debian Stretch/Buster - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine (Windows 7 / 10)
. * As with any community forum, support is provided voluntarily by members. If you require sales support, you can contact the Tranquil IT sales department at 02.40.97.57.55
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is provided on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version (1.8.2 / 2.0 / 2.1 / 2.2 / etc.) AS WELL AS the Enterprise / Discovery edition.
* Specify the server OS (Linux / Windows) and version (Debian Stretch/Buster - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine (Windows 7 / 10)
. * As with any community forum, support is provided voluntarily by members. If you require sales support, you can contact the Tranquil IT sales department at 02.40.97.57.55
It is possible to create a package that uninstalls all versions of Thunderbird (keeping profiles) and reinstalls the desired version.
In order:
Sincerely,
Alexander
In order:
- - Remove Thunderbird version 52 from the repository
- Create a package that uninstalls Thunderbird 52
- Install Thunderbird 45
Sincerely,
Alexander
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
First, remove version 52.1.0 from your repository, then create a Wapt fix package:
tis-fixupwapt
This package can be kept because it allows you to send Wapt configurations later
tis-fixupwapt
Code: Select all
def install():
prefixpkg = control.package.split('-',1)[0]
thunderbird = WAPT.is_installed('%s-thunderbird'% prefixpkg)
if reader and Version(thunderbird.version) == Version('52.1.0-67'):
WAPT.remove(thunderbird.package)
WAPT.install('%s-thunderbird'% prefixpkg)
This package can be kept because it allows you to send Wapt configurations later
Okay, I just tested it but I'm getting an error, here are the logs:
2017-05-09 10:02:23,572 CRITICAL Package sitic-fixupwapt (=17-17) not installed due to errors: NameError: global name 'reader' is not defined
2017-05-09 10:02:23,575 CRITICAL Exception: Error during install of sitic-fixupwapt (=17-17): errors in packages [[u'sitic-fixupwapt (=17-17)', PackageEntry('sitic-fixupwapt','17-17')]]
For your information, here's what I put in my fixup:
2017-05-09 10:02:23,572 CRITICAL Package sitic-fixupwapt (=17-17) not installed due to errors: NameError: global name 'reader' is not defined
2017-05-09 10:02:23,575 CRITICAL Exception: Error during install of sitic-fixupwapt (=17-17): errors in packages [[u'sitic-fixupwapt (=17-17)', PackageEntry('sitic-fixupwapt','17-17')]]
For your information, here's what I put in my fixup:
Code: Select all
def install():
prefixpkg = control.package.split('-',1)[0]
thunderbird = WAPT.is_installed('%s-thunderbird'% prefixpkg)
if reader and Version(thunderbird.version) == Version('52.0-5'):
WAPT.remove(thunderbird.package)
WAPT.install('%s-thunderbird'% prefixpkg)
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Oops
Code: Select all
def install():
prefixpkg = control.package.split('-',1)[0]
thunderbird = WAPT.is_installed('%s-thunderbird'% prefixpkg)
if thunderbird and Version(thunderbird.version) == Version('52.1.0-67'):
WAPT.remove(thunderbird.package)
WAPT.install('%s-thunderbird'% prefixpkg)
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Yes, you just need to adapt the code. 
It's also possible to integrate the uninstallation of older Java versions directly into the Java package.
- Simon
It's also possible to integrate the uninstallation of older Java versions directly into the Java package.
- Simon
Okay, I can confirm it works well. However, I have a problem with the Lightning component, which is now in a higher version and not supported by Thunderbird 45
I've run some tests and apparently simply deleting the following directory is enough:
C:\Program Files (x86)\Mozilla Thunderbird\distribution\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}
So, a question: is it possible to add a line of code that, after uninstalling Thunderbird 52, would delete the directory before reinstalling Thunderbird 45?
Something like:
I've run some tests and apparently simply deleting the following directory is enough:
C:\Program Files (x86)\Mozilla Thunderbird\distribution\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}
So, a question: is it possible to add a line of code that, after uninstalling Thunderbird 52, would delete the directory before reinstalling Thunderbird 45?
Something like:
Code: Select all
def install():
prefixpkg = control.package.split('-',1)[0]
thunderbird = WAPT.is_installed('%s-thunderbird'% prefixpkg)
if thunderbird and Version(thunderbird.version) == Version('52.0-5'):
WAPT.remove(thunderbird.package)
shutil.rmtree('C:\Program Files (x86)\Mozilla Thunderbird\distribution\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}')
WAPT.install('%s-thunderbird'% prefixpkg)