This installs Firefox or Thunderbird automatically and configure installed instance as you like. This helps that you distribute customized Firefox or Thunderbird to PCs in a specific organization.
To use this, you need to do following steps:
- Setup your environment to build NSIS3 binary.
- Prepare configuration files and resouces (addons, CSS files, etc.) to include the final installer package.
- Build the binary of Fx Meta Instlaler (fainstall) and the final installer package.
Fx Meta Installer is written as a NSIS script, and depends on these plugins.
Fx Meta Installer is written as a NSIS script. You need to setup build environments at first.
-
Setup MSYS2 environment and install additional software.
For example:
$ pacman -Syu $ pacman -S git gcc make zip $ wget https://ja.osdn.net/projects/nkf/downloads/70406/nkf-2.1.5.tar.gz $ tar xf nkf-2.1.5.tar.gz $ cd nkf-2.1.5 $ make install
-
Download the installer v2.x and instlal it. See NSIS wiki. (If you want to debug Fx Meta Installer with detailed logs, you should use the "advanced logging" build of the NSIS. See Special Builds.)
-
Install plugins. Download zip files, decompress them, move ".dll" files to "c:\Program Files\NSIS\Plugins", and move ".nsh" files to "c:\Program Files\NSIS\Include". NOTE that NSIS 2.x is 32 bit program, so you need to 32 bit plugins.
For example:
$ cp AccessControl/Plugins/i386-unicode/AccessControl.dll /c/Program\ Files\ \(x86\)/NSIS/Plugins/ $ cp CustomLicense/Plugins/Unicode/CustomLicense.dll /c/Program\ Files\ \(x86\)/NSIS/Plugins/ $ cp FindProc/FindProcDLL.dll /c/Program\ Files\ \(x86\)/NSIS/Plugins/ $ cp Inetc/Plugins/x86-unicode/INetC.dll /c/Program\ Files\ \(x86\)/NSIS/Plugins/ $ cp LogEx/Plugins/Unicode/LogEx.dll /c/Program\ Files\ \(x86\)/NSIS/Plugins/ $ cp Md5dll/UNICODE/md5dll.dll /c/Program\ Files\ \(x86\)/NSIS/Plugins/ $ cp NSISArray/Unicode/Plugins/NSISArray.dll /c/Program\ Files\\)/NSIS/Include/ $ cp NSISArray/Include/NSISArray.nsh /c/Program\ Files\ \(x86\)/NSIS/Plugins/ $ cp UAC/Plugins/x86-unicode/UAC.dll /c/Program\ Files\ \(x86\)/NSIS/Plugins/ $ cp UserMgr/UserMgr.dll /c/Program\ Files\ \(x86\)/NSIS/Plugins/ $ cp Xml/Include/XML.nsh /c/Program\ Files\ \(x86\)/NSIS/Include/ $ cp Xml/Plugin/xml.dll /c/Program\ Files\ \(x86\)/NSIS/Plugins/ $ cp ZipDLL/ZipDLL.dll /c/Program\ Files\ \(x86\)/NSIS/Plugins/
-
Install required packages "nsis", "nsis-common", "pwgen" and "uuid-runtime". Please note that "nsis" version 3.0 and later (default on Ubuntu 20.04LTS or others) is not supported yet and you need to install version 2.x (default on Ubuntu 18.04LTS or others).
$ sudo apt-get install nsis nsis-common pwgen uuid-runtime
-
Install plugins. Download zip files, decompress them,
$ scripts/download_plugins.sh install
-
Install required a package "nsis".
$ brew install makensis
-
Install plugins. Download zip files, decompress them,
$ scripts/download_plugins.sh install
-
install GNU origin commands.
$ brew install gnu-tar coreutils
- Copy "config.bat.sample" to "config.bat", and copy "config.nsh.sample" to "config.nsh".
- Modify both files as you like.
- Put .xpi, .css, .js, .cfg, .exe, and other resources to the directory "resources".
- Run "make.bat" (Windows) or "make.sh" (Linux).
- Then, the kit to generate the final installer executable is saved as a new directory "FxMetaInstaller-source".
- Copy the directory "FxMetaInstaller-source" to a local disk of Windows environment.
- Confirm files in the "resources" directory and the "fainstall.ini". If there is no problem, run the batch file "FxMetaInstaller.bat". Then, the final installer executable "FxMetaInstaller.exe" is generated.
MSI doesn't cover full features of NSIS, so we cannot convert Fx Meta Installer from .exe to .msi. However, you can run NSIS .exe files from .msi.
This repository includes binaries of 7-Zip self extraction: 7zSD.sfx and 7zS.sfx. You can update them by following steps:
- Download new self extraction binaries (7zSD.sfx and 7zS.sfx). Go to the download page in the 7-Zip project site and extract binaries.
- Replace old .sfx files with new one.
- Replace icon resources in those .sfx files with fainstal.ico, by IconReset or similar tool.
Fx Meta Installerによって生成された、インストールを行うモジュール(fainstall.exe)は、無保証にて自由に利用できます。
fainstall.exeを含める形で作成した最終生成物の実行ファイル(以下、メタインストーラ)の使用および利用の許諾条件は、そのメタインストーラによってインストールされるソフトウェアの使用および利用の許諾条件に依存します。例えば、以下のような制限があり得ます。
- 同梱したアドオンやプラグインの利用許諾条件として、非営利での利用が必須条件となっている場合、メタインストーラを有償で販売することはできません。
- Firefoxを自動的にインストールするように設定した場合、メタインストーラを不特定多数に向けて無断で一般公開することはできません。一般公開のためにはMozillaの許諾を得る必要があります。詳しくは法人向けFAQの「製品をカスタマイズして配布しても構わないのですか?」の項を参照して下さい。 (なお、公式のFirefoxのバイナリではなく、Firefoxのロゴなどを含まない独自ビルドのバイナリであれば、この限りではありません。)