Fixed critical bug for Windows XP and added compression for add ons (speedup)
This commit is contained in:
4
CLIENT_DATA/7Zip_config.txt
Normal file
4
CLIENT_DATA/7Zip_config.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
;!@Install@!UTF-8!
|
||||
InstallPath="Extract"
|
||||
GUIMode="1"
|
||||
;!@InstallEnd@!
|
||||
21
CLIENT_DATA/mozilla.cfg.xp
Normal file
21
CLIENT_DATA/mozilla.cfg.xp
Normal file
@@ -0,0 +1,21 @@
|
||||
// auto update
|
||||
lockPref("app.update.auto", false);
|
||||
lockPref("app.update.enabled", false);
|
||||
// lockPref("extensions.update.enabled", false);
|
||||
// lockPref("browser.search.update", false);
|
||||
// pref("extensions.checkUpdateSecurity", false);
|
||||
|
||||
// stops the 'know your rights' button from displaying on first run
|
||||
pref("browser.rights.3.shown", true);
|
||||
pref("mail.rights.version", 1);
|
||||
// stops the request to send performance data from displaying
|
||||
pref("toolkit.telemetry.prompted", true);
|
||||
|
||||
// imap folder redirection
|
||||
pref("mail.root.imap-rel", "[ProfD]../../../../Lokale Einstellungen/Anwendungsdaten/Thunderbird/ImapMail");
|
||||
pref("mail.root.imap", "[ProfD]../../../../Lokale Einstellungen/Anwendungsdaten/Thunderbird/ImapMail");
|
||||
|
||||
// settings for add-on installations
|
||||
// https://developer.mozilla.org/en-US/docs/Installing_extensions
|
||||
// pref("extensions.autoDisableScopes", 15);
|
||||
// pref("extensions.enabledScopes", 4);
|
||||
@@ -21,6 +21,9 @@ DefVar $OLD_RELEASE$
|
||||
|
||||
Set $LogDir$ = "%SystemDrive%\tmp"
|
||||
|
||||
DefVar $MSVersion$
|
||||
Set $MSVersion$ = GetMsVersionInfo
|
||||
|
||||
; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh
|
||||
; and adds the following variables:
|
||||
; from builder-product.cfg : all variables definded by attribute WINST[index]
|
||||
@@ -60,13 +63,17 @@ else
|
||||
Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " ..."
|
||||
|
||||
comment "Start setup program"
|
||||
ChangeDirectory "%SCRIPTPATH%"
|
||||
; ChangeDirectory "%SCRIPTPATH%"
|
||||
DosInAnIcon_install
|
||||
Winbatch_install
|
||||
Sub_check_exitcode
|
||||
|
||||
|
||||
comment "Copy files"
|
||||
Files_install /32Bit
|
||||
|
||||
if ( $MSVersion$ = "5.1" )
|
||||
DosInAnIcon_xp_install
|
||||
endif
|
||||
comment "Patch Registry"
|
||||
Registry_install /32Bit
|
||||
|
||||
@@ -75,22 +82,43 @@ else
|
||||
|
||||
endif
|
||||
|
||||
|
||||
[Winbatch_install]
|
||||
|
||||
[DosInAnIcon_install]
|
||||
rem Extact Addons
|
||||
mkdir "$LogDir$\$ProductId$"
|
||||
copy "%ScriptPath%\X86\addons.exe" "$LogDir$\$ProductId$"
|
||||
cd %SystemDrive%
|
||||
cd "$LogDir$\$ProductId$"
|
||||
addons.exe
|
||||
mkdir "$InstallDir$\distribution"
|
||||
mkdir "$InstallDir$"
|
||||
move "$LogDir$\$ProductId$\Extract\Addons\extensions" "$InstallDir$\extensions"
|
||||
|
||||
rem Original Install routine
|
||||
REG ADD HKLM\SOFTWARE\Mozilla\MaintenanceService /v Attempted /t REG_DWORD /d 1 /f
|
||||
"$InstallExe$" -ms
|
||||
"%ProgramFiles32Dir%\Mozilla Maintenance Service\uninstall.exe" /S
|
||||
rem Move thia after install
|
||||
move "$LogDir$\$ProductId$\Extract\Addons\bundles" "$InstallDir$\distribution\bundles"
|
||||
|
||||
rem Cleanup temporary extract folder
|
||||
cd "$LogDir$"
|
||||
rmdir /S /Q "$LogDir$\$ProductId$"
|
||||
|
||||
[Files_install]
|
||||
; copy the ini file to the InstallDir
|
||||
copy "$IniCfgFile$" "$InstallDir$"
|
||||
copy "%ScriptPath%\*.cfg" "$InstallDir$"
|
||||
copy "%ScriptPath%\local-settings.js" "$InstallDir$\defaults\pref"
|
||||
copy -s "%ScriptPath%\X86\Addons\bundles\*.*" "$InstallDir$\distribution\bundles"
|
||||
copy -s "%ScriptPath%\X86\Addons\extensions\*.*" "$InstallDir$\extensions"
|
||||
; copy -s "%ScriptPath%\X86\Addons\bundles\*.*" "$InstallDir$\distribution\bundles"
|
||||
; copy -s "%ScriptPath%\X86\Addons\extensions\*.*" "$InstallDir$\extensions"
|
||||
|
||||
del "$InstallDir$\distribution\extensions\tbtestpilot@labs.mozilla.com.xpi"
|
||||
|
||||
[DosInAnIcon_xp_install]
|
||||
copy /Y "%ScriptPath%\mozilla.cfg.xp" "$InstallDir$\mozilla.cfg"
|
||||
|
||||
[Registry_install]
|
||||
; Example of setting some values of an registry key:
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user