Page 1 of 1

[Resolved] Package update - Thunderbird

Published: October 18, 2019 - 4:55 PM
by Gaetan
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?

Re: Package update - Thunderbird

Published: October 31, 2019 - 4:28 PM
by Gaetan
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/

Re: Package update - Thunderbird

Published: November 2, 2019 - 11:14 AM
by sfonteneau
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.

Re: Package update - Thunderbird

Published: November 4, 2019 - 9:55 AM
by Gaetan
I've also noted this, thank you ;)