[Resolved] Package update - Thunderbird

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available 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, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

October 18, 2019 - 4:55 PM

Good morning,

Mozilla has changed its update service for Thunderbird.

Shouldn't we add this:

Code: Select all

// Désactive la mise à jour automatique
Pref("app.update.enabled", false);
// pour être sûr que la mise à jour automatique soit désactivée
Pref("app.update.auto", false);
Pref("app.update.mode", 0);
Pref("app.update.service.enabled", false);
in the mozilla.cfg file?
Last edited by Gaetan on 05 Nov 2019 - 15:29, edited 1 time.
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

October 31, 2019 - 4:28 PM

Good morning,
The tests performed did not work.

Based on the information presented here (via the mailing list): https://mail.mozilla.org/pipermail/tb-e...01551.html
I was able to test and confirm the suspension of updates.
The procedure:
- Create a distribution folder within the policies.json folder
- Enter this code:

Code: Select all

{
  "policies": {
    "AppUpdateURL": "http://127.0.0.1/",
	"DisableAppUpdate": true,
	"DisableFirefoxStudies": true,
	"DisableTelemetry": true
  }
}
It is functional for Firefox since version 63 and Thunderbird 68.

A snippet of code that copies the policies.json file to the correct location:
You need to create a `dis` folder in the package that contains `policies.json`

Code: Select all


#Initialisation des variables pour les chemins d'origine de destination
targetdirdis64 = makepath(programfiles,'Mozilla Thunderbird\distribution')

#Initialisation des variables pour les chemins d'origine du paquet
folderdis = makepath('dis')

 #Si le dossier distribution existe
            if isdir(targetdirdis64):
                filecopyto(folderdis+'\\policies.json',targetdirdis64)
            else :
                mkdirs(folderdis)
                filecopyto(folderdis+'\\policies.json',targetdirdis64)

This is displayed in the options:

Picture

Sources:
https://support.mozilla.org/fr/kb/perso ...icies-json
https://github.com/mozilla/policy-templates
https://www.reddit.com/r/firefox/commen...te_checks/
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

November 2, 2019 - 11:14

To disable Thunderbird's upgrade, we added the following to the package:

registry_set(HKEY_LOCAL_MACHINE,'SOFTWARE\\Policies\\Mozilla\\Thunderbird','DisableAppUpdate',1,REG_DWORD)

And it works.

Apparently, policy rules can also be written to the registry.
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

November 4, 2019 - 9:55 AM

I've also noted this, thank you ;)
Locked