w10install/scripts/install-firefox.cmd

65 lines
1.8 KiB
Batchfile
Raw Normal View History

2021-01-10 15:49:37 +01:00
@echo off
2021-01-10 16:42:07 +01:00
set CONF=deploy\firefox
set SCRIPTS=..\..\scripts
set SOFTWARE=..\software\firefox
2021-01-10 15:49:37 +01:00
set MSI=Firefox_Setup_83.0b9.msi
set FIREFOXBASE="C:\Program Files\Mozilla Firefox"
2021-01-10 16:42:07 +01:00
set BADGERFILE=%SOFTWARE%\privacy_badger-2020.12.10.xpi
2021-01-10 15:49:37 +01:00
set BADGERTARGET=jid1-MnnxcxisBPnSXQ@jetpack.xpi
2021-01-10 16:42:07 +01:00
set UBLOCKFILE=%SOFTWARE%\ublock_origin-1.32.0.xpi
2021-01-10 15:49:37 +01:00
set UBLOCKTARGET=uBlock0@raymondhill.net.xpi
2021-01-10 16:42:07 +01:00
set PASSWORD1FILE=%SOFTWARE%\1password-1.22.3.xpi
2021-01-10 15:49:37 +01:00
set PASSWORD1TARGET={d634138d-c276-4fc8-924b-40a0ea21d284}.xpi
2021-01-10 16:42:07 +01:00
set BITWARDENFILE=%SOFTWARE%\bitwarden-1.47.1.xpi
2021-01-10 15:49:37 +01:00
set BITWARDENTARGET={446900e4-71c2-419f-a6a7-df9c091e268b}.xpi
echo ####### %0 #######
2021-01-10 16:42:07 +01:00
cd %SOFTWARE%
2021-01-10 15:49:37 +01:00
@echo on
msiexec /i %MSI% /passive
@echo off
2021-01-10 16:42:07 +01:00
cd %SCRIPTS%
2021-01-10 15:49:37 +01:00
rem copy config ...
copy /Y %CONF%\local-settings.js %FIREFOXBASE%\defaults\pref
copy /Y %CONF%\mozilla.cfg %FIREFOXBASE%
echo disabling FireFox updates (all users) ...
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox" ^
/v DisableAppUpdate ^
/t REG_DWORD ^
/d 1 ^
/f
echo enabling FireFox Bookmarks-bar for all users ...
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox" ^
/v DisplayBookmarksToolbar ^
/t REG_DWORD ^
/d 1 ^
/f
echo creating extensions directory ...
2021-01-10 16:42:07 +01:00
mkdir %FIREFOXBASE%\distribution\extensions 1>nul 2>nul
2021-01-10 15:49:37 +01:00
echo installing badger(eff) to fight internet bullshit ...
2021-01-10 16:42:07 +01:00
copy /Y %BADGERFILE% %FIREFOXBASE%\distribution\extensions\%BADGERTARGET%
2021-01-10 15:49:37 +01:00
echo installing uBlock to fight even more internet bullshit ...
2021-01-10 16:42:07 +01:00
copy /Y %UBLOCKFILE% %FIREFOXBASE%\distribution\extensions\%UBLOCKTARGET%
2021-01-10 15:49:37 +01:00
echo installing 1Password plugin ...
2021-01-10 16:42:07 +01:00
copy /Y %PASSWORD1FILE% %FIREFOXBASE%\distribution\extensions\%PASSWORD1TARGET%
2021-01-10 15:49:37 +01:00
echo installing Bitwarden plugin ...
2021-01-10 16:42:07 +01:00
copy /Y %BITWARDENFILE% %FIREFOXBASE%\distribution\extensions\%BITWARDENTARGET%
2021-01-10 15:49:37 +01:00
echo ####### %0 #######