Firefox和Thunderbird的自定义(预configuration)安装程序

我想准备一个Thunderbird和Firefox的定制安装程序,它将预先configuration地址簿,代理设置等。

我在这个问题上发现了一些论坛主题: 在这里和这里 ,有人build议使用mozptch,但目前已停止使用,并build议使用http://opsi.org/

我也从这个问题和这个 问题中find了WPKG包安装程序。

他们都假设configuration稍后由MDC完成。

但我不喜欢大量安装包pipe理器,然后安装和configuration程序。 (因为我的Active Directory知识非常有限)。 我非常喜欢创build一个定制的安装程序,它可以在用户的​​办公电脑和家用电脑上运行。

您可以推荐什么方法来为Thunderbird和Firefox创build自定义和预configuration的安装程序?

考虑到:

  • Firefox和Thunderbird不会将任何内容安装到程序文件*以外的系统文件夹中。
  • 所有configuration都存储在configuration文件文件夹中(它们不使用Windowsregistry进行用户设置)。
  • 即使使用不同版本的Windows,您也可以将configuration文件从一台计算机复制到另一台计算机上,并且工作正常(几天前当同事从XP更改为Windows 7时,我们就这样做了)。

你可以试试这个:

  1. 重新安装Firefox和Thunderbird,然后根据需要进行configuration。
  2. 使用NSIS (或任何其他免费安装程序)创build一个安装程序,其中包含“应用程序数据”(AppData在Vista / 7中)中的Firefox / Thunderbird Program Files文件夹和相应的configuration文件文件夹的所有内容。

要么

  1. 使用官方安装程序安装应用程序
  2. 创buildconfiguration文件的安装程序并在安装应用程序之后立即安装。

第一个选项的Firefox的NSIS脚本的核心是这样的:

!define LOCAL_INSTALLATION "C:\Program Files\Mozilla Firefox" ; change this to point to the folder in which you installed Firefox !define LOCAL_APP_DATA "C:\Documents and Settings\YourUser\Application Data\Mozilla" ; change this to your app data folder Name "Mozilla custom install" OutFile "MozillaCustom_Setup.exe" InstallDir "$PROGRAMFILES\Mozilla Firefox" Section "Mozilla Firefox" main SetOutPath "$INSTDIR" ; Set output path to the installation directory. File /r "${LOCAL_INSTALLATION}\*.*" ; getting all files from you local installation RMDir /r "$APPDATA\Mozilla" ; deleting any existing profiles (you need to clean all the profiles or the "migration" won't work SetOutPath "$APPDATA\Mozilla" ; Set output path to the data folder. File /r "${LOCAL_APP_DATA}\*.*" ; getting all files from your profile CreateDirectory "$SMPROGRAMS\Firefox" CreateShortCut "$SMPROGRAMS\Firefox\Firefox.lnk" "$INSTDIR\Firefox.exe" ; Write the uninstall keys for Windows WriteUninstaller "${UNINSTALLER}" WriteRegStr HKLM "${UNINSTALL_KEY}" "DisplayName" "Firefox" WriteRegStr HKLM "${UNINSTALL_KEY}" "UninstallString" "$INSTDIR\Uninstall.exe" SectionEnd 

(*)例外是Thunderbird的MAPI处理程序DLL,但这是在您将其设置为默认邮件应用程序时完成的,而不是安装时间

Firefox部署在Mozilla Wiki中详细介绍

你可能也想看看BYOB