Андрей Смирнов
Время чтения: ~27 мин.
Просмотров: 2

Deploy firefox with msi installers

Unsupported MSIEXEC Options

  • /fRepairs the product.
  • /aAdministrative installation.
  • /x or /uninstallUninstalls the product.
  • /j along with /t, /g, and /cAdvertises the product.
  • /nSpecifies a particular instance of the product.
  • /p or /updateApplies a patch (.msp) file.

Example configuration

Here’s an example of a valid .mst file to help understand how options can be changed along with the MSI directory for mozilla central:

  • MST file example
  • MSI installer nightly builds
  • MSI installer current release build

Logging can be configured on the MSI to help troubleshoot installation issues.

There are several ways to use the MSI file with configurable parameters exposed in Firefox MSI:

Unsupported MSIEXEC Options

  • /fRepairs the product.
  • /aAdministrative installation.
  • /x or /uninstallUninstalls the product.
  • /j along with /t, /g, and /cAdvertises the product.
  • /nSpecifies a particular instance of the product.
  • /p or /updateApplies a patch (.msp) file.

Example configuration

Here’s an example of a valid .mst file to help understand how options can be changed along with the MSI directory for mozilla central:

  • MST file example
  • MSI installer nightly builds
  • MSI installer current release build

Logging can be configured on the MSI to help troubleshoot installation issues.

There are several ways to use the MSI file with configurable parameters exposed in Firefox MSI:

Firefox custom MSI options

Set a directory path — INSTALL_DIRECTORY_PATH=
Absolute path specifying the complete install location. This directory does not need to exist already (but it can).
If INSTALL_DIRECTORY_NAME is set, then this setting will be ignored.

Set a directory name — INSTALL_DIRECTORY_NAME=
Name of the installation directory to create within Program Files. For example, if INSTALL_DIRECTORY_NAME is set to Firefox Release, then the installation path will be something like C:\Program Files\Firefox Release. The Program Files path used will be the correct one for the architecture of the application being installed and the locale/configuration of the machine; this setting is mainly useful to keep you from having to worry about those differences.
If this is set, then INSTALL_DIRECTORY_PATH will be ignored.

Install a taskbar shortcut — TASKBAR_SHORTCUT={true,false}
Set to false to disable pinning a shortcut to the taskbar. true by default. This feature only works on Windows 7 and 8; it isn’t possible to create taskbar pins from the installer on later Windows versions.

Install a desktop shortcut — DESKTOP_SHORTCUT={true,false}
Set to false to disable creating a shortcut on the desktop. true by default.

Install a start menu shortcut — START_MENU_SHORTCUT={true,false}
Set to false to disable creating a Start menu shortcut. true by default.

Disable the maintenance service — INSTALL_MAINTENANCE_SERVICE={true,false}
Set to false to disable installing the Mozilla Maintenance Service. This will effectively prevent users from installing Firefox updates if they do not have write permissions to the installation directory. true by default.

Disable removing distribution directory — REMOVE_DISTRIBUTION_DIR={true,false}
Set to false to disable removing the distribution directory from an existing installation that’s being paved over. By default this is true and the directory is removed.

Prevent rebooting — PREVENT_REBOOT_REQUIRED={true,false}
Set to true to keep the installer from taking actions that would require rebooting the machine to complete, normally because files are in use. This should not be needed under normal circumstances unless you’re paving over a copy of Firefox that was running while the installer was trying to run, and setting this option in that case may result in an incomplete installation. false by default.

Bundle extensions — OPTIONAL_EXTENSIONS={true,false}
Set to false to disable installing any bundled extensions that are present. true by default.

Application files extraction directory — EXTRACT_DIR=
Extract the application files to the given directory and exit without actually running the installer. Of course, this means all other options will be ignored.

MSIEXEC options

The command line parameters for msiexec.exe (the Windows component responsible for installing, uninstalling, and otherwise working with MSI files) are documented here and also by the output of the /? option. Our MSI packages, because they wrap a .exe installer and don’t really use the MSI framework, do not support many of the command line parameters available to msiexec. This document lists the msiexec parameters that are supported and unsupported for use with our MSI packages.

Unsupported MSIEXEC Options

  • /fRepairs the product.
  • /aAdministrative installation.
  • /x or /uninstallUninstalls the product.
  • /j along with /t, /g, and /cAdvertises the product.
  • /nSpecifies a particular instance of the product.
  • /p or /updateApplies a patch (.msp) file.

Example configuration

Here’s an example of a valid .mst file to help understand how options can be changed along with the MSI directory for mozilla central:

  • MST file example
  • MSI installer nightly builds
  • MSI installer current release build

Logging can be configured on the MSI to help troubleshoot installation issues.

There are several ways to use the MSI file with configurable parameters exposed in Firefox MSI:

Supported MSIEXEC Options

  • /i or /packageInstalls the product.
  • /L or /logGenerates an MSI log file. All of this option’s configuration parameters are supported.
  • /m
    • Generates an SMS status .mif file.
    • Without having a copy of Systems Management Server I’ve been unable to test this, but it should work.
  • /q, /quiet, and /passiveSets the UI mode. The full UI option (/qf) is accepted but ignored, because we have no full UI.
  • /norestart, /forcerestart, and /promptrestartThe default behavior is always /norestart, but the other options behave as expected.
  • PROPERTY=VALUE

Options that do not operate on a package file (/?, /h, /help, /y, /z)

Firefox custom MSI options

Set a directory path — INSTALL_DIRECTORY_PATH=
Absolute path specifying the complete install location. This directory does not need to exist already (but it can).
If INSTALL_DIRECTORY_NAME is set, then this setting will be ignored.

Set a directory name — INSTALL_DIRECTORY_NAME=
Name of the installation directory to create within Program Files. For example, if INSTALL_DIRECTORY_NAME is set to Firefox Release, then the installation path will be something like C:\Program Files\Firefox Release. The Program Files path used will be the correct one for the architecture of the application being installed and the locale/configuration of the machine; this setting is mainly useful to keep you from having to worry about those differences.
If this is set, then INSTALL_DIRECTORY_PATH will be ignored.

Install a taskbar shortcut — TASKBAR_SHORTCUT={true,false}
Set to false to disable pinning a shortcut to the taskbar. true by default. This feature only works on Windows 7 and 8; it isn’t possible to create taskbar pins from the installer on later Windows versions.

Install a desktop shortcut — DESKTOP_SHORTCUT={true,false}
Set to false to disable creating a shortcut on the desktop. true by default.

Install a start menu shortcut — START_MENU_SHORTCUT={true,false}
Set to false to disable creating a Start menu shortcut. true by default.

Disable the maintenance service — INSTALL_MAINTENANCE_SERVICE={true,false}
Set to false to disable installing the Mozilla Maintenance Service. This will effectively prevent users from installing Firefox updates if they do not have write permissions to the installation directory. true by default.

Disable removing distribution directory — REMOVE_DISTRIBUTION_DIR={true,false}
Set to false to disable removing the distribution directory from an existing installation that’s being paved over. By default this is true and the directory is removed.

Prevent rebooting — PREVENT_REBOOT_REQUIRED={true,false}
Set to true to keep the installer from taking actions that would require rebooting the machine to complete, normally because files are in use. This should not be needed under normal circumstances unless you’re paving over a copy of Firefox that was running while the installer was trying to run, and setting this option in that case may result in an incomplete installation. false by default.

Bundle extensions — OPTIONAL_EXTENSIONS={true,false}
Set to false to disable installing any bundled extensions that are present. true by default.

Application files extraction directory — EXTRACT_DIR=
Extract the application files to the given directory and exit without actually running the installer. Of course, this means all other options will be ignored.

MSIEXEC options

The command line parameters for msiexec.exe (the Windows component responsible for installing, uninstalling, and otherwise working with MSI files) are documented here and also by the output of the /? option. Our MSI packages, because they wrap a .exe installer and don’t really use the MSI framework, do not support many of the command line parameters available to msiexec. This document lists the msiexec parameters that are supported and unsupported for use with our MSI packages.

Unsupported MSIEXEC Options

  • /fRepairs the product.
  • /aAdministrative installation.
  • /x or /uninstallUninstalls the product.
  • /j along with /t, /g, and /cAdvertises the product.
  • /nSpecifies a particular instance of the product.
  • /p or /updateApplies a patch (.msp) file.

Example configuration

Here’s an example of a valid .mst file to help understand how options can be changed along with the MSI directory for mozilla central:

  • MST file example
  • MSI installer nightly builds
  • MSI installer current release build

Logging can be configured on the MSI to help troubleshoot installation issues.

There are several ways to use the MSI file with configurable parameters exposed in Firefox MSI:

Unsupported MSIEXEC Options

  • /fRepairs the product.
  • /aAdministrative installation.
  • /x or /uninstallUninstalls the product.
  • /j along with /t, /g, and /cAdvertises the product.
  • /nSpecifies a particular instance of the product.
  • /p or /updateApplies a patch (.msp) file.

Example configuration

Here’s an example of a valid .mst file to help understand how options can be changed along with the MSI directory for mozilla central:

  • MST file example
  • MSI installer nightly builds
  • MSI installer current release build

Logging can be configured on the MSI to help troubleshoot installation issues.

There are several ways to use the MSI file with configurable parameters exposed in Firefox MSI:

Supported MSIEXEC Options

  • /i or /packageInstalls the product.
  • /L or /logGenerates an MSI log file. All of this option’s configuration parameters are supported.
  • /m
    • Generates an SMS status .mif file.
    • Without having a copy of Systems Management Server I’ve been unable to test this, but it should work.
  • /q, /quiet, and /passiveSets the UI mode. The full UI option (/qf) is accepted but ignored, because we have no full UI.
  • /norestart, /forcerestart, and /promptrestartThe default behavior is always /norestart, but the other options behave as expected.
  • PROPERTY=VALUE

Options that do not operate on a package file (/?, /h, /help, /y, /z)

Opzioni MSI personalizzate per Firefox

Impostare un percorso di directory — INSTALL_DIRECTORY_PATH=
Percorso assoluto che specifica il percorso di installazione completo. Non è necessario che questa directory esista già (ma può esistere). Se è stato impostato INSTALL_DIRECTORY_NAME, questa impostazione verrà ignorata.

Impostare un nome di directory — INSTALL_DIRECTORY_NAME=
Nome della directory di installazione da creare all’interno di Program Files. Ad esempio, se INSTALL_DIRECTORY_NAME è impostato su Firefox Release, il percorso di installazione sarà simile a C:\Program Files\Firefox Release. Il percorso Program Files utilizzato sarà quello corretto per l’architettura dell’applicazione installata e la lingua/configurazione del computer di destinazione; questa impostazione è utile soprattutto per evitare di doversi preoccupare di queste differenze.
Se INSTALL_DIRECTORY_NAME è stato impostato, allora INSTALL_DIRECTORY_PATH verrà ignorato.

Installare una scorciatoia per la barra delle applicazioni — TASKBAR_SHORTCUT={true,false}
Impostare su false per evitare di creare un collegamento sulla barra delle applicazioni. Il valore è true per impostazione predefinita. Questa caratteristica funziona solo su Windows 7 e 8; nelle versioni successive di Windows, non è possibile creare un collegamento sulla barra delle applicazioni dal programma di installazione.

Installare un collegamento sul desktop — DESKTOP_SHORTCUT={true,false}
Impostare su false per disattivare la creazione di un collegamento sul desktop. Il valore è true per impostazione predefinita.

Installare un collegamento al menu Start — START_MENU_SHORTCUT={true,false}
Impostare su false per disattivare la creazione di un collegamento sul menu Start. Il valore è true per impostazione predefinita.

Disattivare il servizio di manutenzione — INSTALL_MAINTENANCE_SERVICE={true,false}
Impostare su false per disattivare l’installazione di Mozilla Maintenance Service. Ciò impedirà in modo efficace agli utenti di installare gli aggiornamenti di Firefox se non dispongono delle autorizzazioni di scrittura per la directory di installazione. Il valore è true per impostazione predefinita.

Disattivare la rimozione della directory di distribuzione — REMOVE_DISTRIBUTION_DIR={true, false}
Impostare su false per evitare di rimuovere la directory di distribuzione di un’installazione già presente che si sta sovrascrivendo. Per impostazione predefinita questo valore è true e la directory è rimossa.

Evitare il riavvio del computer — PREVENT_REBOOT_REQUIRED={true,false}
Impostare su true per impedire al programma di installazione di eseguire azioni che richiedono il riavvio del computer per il completamento, in genere perché i file sono in uso. Ciò non dovrebbe essere necessario in circostanze normali a meno che il programma non cerchi di sovrascrivere una installazione di Firefox mentre Firefox è in esecuzione; l’impostazione di questa opzione in questo caso potrebbe portare a un’installazione incompleta. Il valore è false per impostazione predefinita.

Estensioni opzionali — OPTIONAL_EXTENSIONS={true,false}
Impostare su false per disattivare l’installazione di qualsiasi estensione presente nel pacchetto di installazione. Il valore è true per impostazione predefinita.

Directory di estrazione dei file dell’applicazione — EXTRACT_DI=
Estrarre i file dell’applicazione nella directory specificata e uscire, senza eseguire effettivamente il programma di installazione. Ovviamente, questo significa che tutte le altre opzioni saranno ignorate.

Opzioni di MSIEXEC

I parametri della riga di comando per msiexec.exe (il componente di Windows responsabile dell’installazione, della disinstallazione, e in generale della gestione dei file MSI) sono documentati in questa pagina della documentazione Microsoft (in inglese) e anche dall’output dell’opzione /?. I pacchetti MSI di Mozilla, poiché racchiudono un programma di installazione .exe e non utilizzano realmente il framework MSI, non supportano molti dei parametri della riga di comando disponibili per msiexec. In questo documento sono elencati i parametri msiexec supportati e quelli non supportati dai pacchetti MSI di Mozilla.

Firefox custom MSI options

Set a directory path — INSTALL_DIRECTORY_PATH=
Absolute path specifying the complete install location. This directory does not need to exist already (but it can).
If INSTALL_DIRECTORY_NAME is set, then this setting will be ignored.

Set a directory name — INSTALL_DIRECTORY_NAME=
Name of the installation directory to create within Program Files. For example, if INSTALL_DIRECTORY_NAME is set to Firefox Release, then the installation path will be something like C:\Program Files\Firefox Release. The Program Files path used will be the correct one for the architecture of the application being installed and the locale/configuration of the machine; this setting is mainly useful to keep you from having to worry about those differences.
If this is set, then INSTALL_DIRECTORY_PATH will be ignored.

Install a taskbar shortcut — TASKBAR_SHORTCUT={true,false}
Set to false to disable pinning a shortcut to the taskbar. true by default. This feature only works on Windows 7 and 8; it isn’t possible to create taskbar pins from the installer on later Windows versions.

Install a desktop shortcut — DESKTOP_SHORTCUT={true,false}
Set to false to disable creating a shortcut on the desktop. true by default.

Install a start menu shortcut — START_MENU_SHORTCUT={true,false}
Set to false to disable creating a Start menu shortcut. true by default.

Disable the maintenance service — INSTALL_MAINTENANCE_SERVICE={true,false}
Set to false to disable installing the Mozilla Maintenance Service. This will effectively prevent users from installing Firefox updates if they do not have write permissions to the installation directory. true by default.

Disable removing distribution directory — REMOVE_DISTRIBUTION_DIR={true,false}
Set to false to disable removing the distribution directory from an existing installation that’s being paved over. By default this is true and the directory is removed.

Prevent rebooting — PREVENT_REBOOT_REQUIRED={true,false}
Set to true to keep the installer from taking actions that would require rebooting the machine to complete, normally because files are in use. This should not be needed under normal circumstances unless you’re paving over a copy of Firefox that was running while the installer was trying to run, and setting this option in that case may result in an incomplete installation. false by default.

Bundle extensions — OPTIONAL_EXTENSIONS={true,false}
Set to false to disable installing any bundled extensions that are present. true by default.

Application files extraction directory — EXTRACT_DIR=
Extract the application files to the given directory and exit without actually running the installer. Of course, this means all other options will be ignored.

MSIEXEC options

The command line parameters for msiexec.exe (the Windows component responsible for installing, uninstalling, and otherwise working with MSI files) are documented here and also by the output of the /? option. Our MSI packages, because they wrap a .exe installer and don’t really use the MSI framework, do not support many of the command line parameters available to msiexec. This document lists the msiexec parameters that are supported and unsupported for use with our MSI packages.

Firefox custom MSI options

Set a directory path — INSTALL_DIRECTORY_PATH=
Absolute path specifying the complete install location. This directory does not need to exist already (but it can).
If INSTALL_DIRECTORY_NAME is set, then this setting will be ignored.

Set a directory name — INSTALL_DIRECTORY_NAME=
Name of the installation directory to create within Program Files. For example, if INSTALL_DIRECTORY_NAME is set to Firefox Release, then the installation path will be something like C:\Program Files\Firefox Release. The Program Files path used will be the correct one for the architecture of the application being installed and the locale/configuration of the machine; this setting is mainly useful to keep you from having to worry about those differences.
If this is set, then INSTALL_DIRECTORY_PATH will be ignored.

Install a taskbar shortcut — TASKBAR_SHORTCUT={true,false}
Set to false to disable pinning a shortcut to the taskbar. true by default. This feature only works on Windows 7 and 8; it isn’t possible to create taskbar pins from the installer on later Windows versions.

Install a desktop shortcut — DESKTOP_SHORTCUT={true,false}
Set to false to disable creating a shortcut on the desktop. true by default.

Install a start menu shortcut — START_MENU_SHORTCUT={true,false}
Set to false to disable creating a Start menu shortcut. true by default.

Disable the maintenance service — INSTALL_MAINTENANCE_SERVICE={true,false}
Set to false to disable installing the Mozilla Maintenance Service. This will effectively prevent users from installing Firefox updates if they do not have write permissions to the installation directory. true by default.

Disable removing distribution directory — REMOVE_DISTRIBUTION_DIR={true,false}
Set to false to disable removing the distribution directory from an existing installation that’s being paved over. By default this is true and the directory is removed.

Prevent rebooting — PREVENT_REBOOT_REQUIRED={true,false}
Set to true to keep the installer from taking actions that would require rebooting the machine to complete, normally because files are in use. This should not be needed under normal circumstances unless you’re paving over a copy of Firefox that was running while the installer was trying to run, and setting this option in that case may result in an incomplete installation. false by default.

Bundle extensions — OPTIONAL_EXTENSIONS={true,false}
Set to false to disable installing any bundled extensions that are present. true by default.

Application files extraction directory — EXTRACT_DIR=
Extract the application files to the given directory and exit without actually running the installer. Of course, this means all other options will be ignored.

MSIEXEC options

The command line parameters for msiexec.exe (the Windows component responsible for installing, uninstalling, and otherwise working with MSI files) are documented here and also by the output of the /? option. Our MSI packages, because they wrap a .exe installer and don’t really use the MSI framework, do not support many of the command line parameters available to msiexec. This document lists the msiexec parameters that are supported and unsupported for use with our MSI packages.

Firefox custom MSI options

Set a directory path — INSTALL_DIRECTORY_PATH=
Absolute path specifying the complete install location. This directory does not need to exist already (but it can).
If INSTALL_DIRECTORY_NAME is set, then this setting will be ignored.

Set a directory name — INSTALL_DIRECTORY_NAME=
Name of the installation directory to create within Program Files. For example, if INSTALL_DIRECTORY_NAME is set to Firefox Release, then the installation path will be something like C:\Program Files\Firefox Release. The Program Files path used will be the correct one for the architecture of the application being installed and the locale/configuration of the machine; this setting is mainly useful to keep you from having to worry about those differences.
If this is set, then INSTALL_DIRECTORY_PATH will be ignored.

Install a taskbar shortcut — TASKBAR_SHORTCUT={true,false}
Set to false to disable pinning a shortcut to the taskbar. true by default. This feature only works on Windows 7 and 8; it isn’t possible to create taskbar pins from the installer on later Windows versions.

Install a desktop shortcut — DESKTOP_SHORTCUT={true,false}
Set to false to disable creating a shortcut on the desktop. true by default.

Install a start menu shortcut — START_MENU_SHORTCUT={true,false}
Set to false to disable creating a Start menu shortcut. true by default.

Disable the maintenance service — INSTALL_MAINTENANCE_SERVICE={true,false}
Set to false to disable installing the Mozilla Maintenance Service. This will effectively prevent users from installing Firefox updates if they do not have write permissions to the installation directory. true by default.

Disable removing distribution directory — REMOVE_DISTRIBUTION_DIR={true,false}
Set to false to disable removing the distribution directory from an existing installation that’s being paved over. By default this is true and the directory is removed.

Prevent rebooting — PREVENT_REBOOT_REQUIRED={true,false}
Set to true to keep the installer from taking actions that would require rebooting the machine to complete, normally because files are in use. This should not be needed under normal circumstances unless you’re paving over a copy of Firefox that was running while the installer was trying to run, and setting this option in that case may result in an incomplete installation. false by default.

Bundle extensions — OPTIONAL_EXTENSIONS={true,false}
Set to false to disable installing any bundled extensions that are present. true by default.

Application files extraction directory — EXTRACT_DIR=
Extract the application files to the given directory and exit without actually running the installer. Of course, this means all other options will be ignored.

MSIEXEC options

The command line parameters for msiexec.exe (the Windows component responsible for installing, uninstalling, and otherwise working with MSI files) are documented here and also by the output of the /? option. Our MSI packages, because they wrap a .exe installer and don’t really use the MSI framework, do not support many of the command line parameters available to msiexec. This document lists the msiexec parameters that are supported and unsupported for use with our MSI packages.

Opções MSI personalizadas do Firefox

Definir um caminho de diretório — INSTALL_DIRECTORY_PATH=
Caminho absoluto especificando o local completo da instalação. Este diretório não precisa já existir (mas pode).
Se o INSTALL_DIRECTORY_NAME for definido, esta configuração será ignorada.

Definir um nome de diretório — INSTALL_DIRECTORY_NAME=
Nome do diretório de instalação a ser criado abaixo de Arquivos de Programas. Por exemplo, se INSTALL_DIRECTORY_NAME for definido como Firefox Release, então o caminho de instalação será algo como C:\Arquivos de Programas\Firefox Release. O caminho Arquivos de Programas usado será o correspondente à arquitetura da aplicação sendo instalada e ao idioma/configuração da máquina; esta configuração é útil principalmente para evitar que você tenha que se preocupar com essas diferenças.
Se for definido, então INSTALL_DIRECTORY_PATH será ignorado.

Instalar um atalho na barra de tarefas — TASKBAR_SHORTCUT={true,false}
Defina como false para desativar a fixação de um atalho na barra de tarefas. Por padrão é true. Este recurso só funciona nos Windows 7 e 8. Não é possível criar atalhos fixos na barra de tarefas a partir do instalador em versões posteriores do Windows.

Instalar um atalho na área de trabalho — DESKTOP_SHORTCUT={true,false}
Defina como false para desativar a criação de um atalho na área de trabalho. Por padrão é true.

Instalar um atalho no menu Iniciar — START_MENU_SHORTCUT={true,false}
Defina como false para desativar a criação de um atalho no menu Iniciar. Por padrão é true.

Desativar o serviço de manutenção — INSTALL_MAINTENANCE_SERVICE={true,false}
Defina como false para desativar a instalação do Seviço de Manutenção da Mozilla. Isso irá efetivamente impedir que os usuários instalem atualizações do Firefox se não tiverem permissão para escrita no direório de instalação. Por padrão é true.

Desativar a remoção do diretório de distribuição — REMOVE_DISTRIBUTION_DIR={true,false}
Defina como false para desativar a remoção do diretório de distribuição de uma instalação já existente que está sendo sobreposta. Por padrão é true e o diretório é removido.

Impedir reiniciar o sistema — PREVENT_REBOOT_REQUIRED={true,false}
Defina como true para impedir que o instalador execute ações que necessitariam reiniciar a máquina para concluir, normalmente por causa de arquivos em uso. Isto não deveria ser necessário em circunstâncias normais, a menos que você esteja sobrepondo uma cópia do Firefox que estava sendo usado enquanto o instalador tentava executar. Definir esta opção neste caso pode resultar em uma instalação incompleta. Por padrão é false.

Incorporar extensões — OPTIONAL_EXTENSIONS={true,false}
Defina como false para desativar a instalação de qualquer extensão incorporada que esteja presente. Por padrão é true.

Diretório de extração de arquivos da aplicação — EXTRACT_DIR=
Extrai os arquivos da aplicação no diretório indicado e sai, sem realmente execurar o instalador. Isto significa, é claro, que todas as outras opções serão ignoradas.

Opções do MSIEXEC

Os parâmetros de comando de linha do msiexec.exe (componente do Windows responsável por instalar, desinstalar e outras formas de trabalho com arquivos MSI) estão documentados aqui e também pela saída da opção /?. Nossos pacotes MSI, por incluírem um instalador .exe e não usar realmente o framework MSI, não suportam muitos dos parâmetros de linha de comando disponíveis no msiexec. Este documento lista os parâmetros do msiexec que são suportados e não suportados para ser usados com nossos pacotes MSI.

Supported MSIEXEC Options

  • /i or /packageInstalls the product.
  • /L or /logGenerates an MSI log file. All of this option’s configuration parameters are supported.
  • /m
    • Generates an SMS status .mif file.
    • Without having a copy of Systems Management Server I’ve been unable to test this, but it should work.
  • /q, /quiet, and /passiveSets the UI mode. The full UI option (/qf) is accepted but ignored, because we have no full UI.
  • /norestart, /forcerestart, and /promptrestartThe default behavior is always /norestart, but the other options behave as expected.
  • PROPERTY=VALUE

Options that do not operate on a package file (/?, /h, /help, /y, /z)

Firefox custom MSI options

Set a directory path — INSTALL_DIRECTORY_PATH=
Absolute path specifying the complete install location. This directory does not need to exist already (but it can).
If INSTALL_DIRECTORY_NAME is set, then this setting will be ignored.

Set a directory name — INSTALL_DIRECTORY_NAME=
Name of the installation directory to create within Program Files. For example, if INSTALL_DIRECTORY_NAME is set to Firefox Release, then the installation path will be something like C:\Program Files\Firefox Release. The Program Files path used will be the correct one for the architecture of the application being installed and the locale/configuration of the machine; this setting is mainly useful to keep you from having to worry about those differences.
If this is set, then INSTALL_DIRECTORY_PATH will be ignored.

Install a taskbar shortcut — TASKBAR_SHORTCUT={true,false}
Set to false to disable pinning a shortcut to the taskbar. true by default. This feature only works on Windows 7 and 8; it isn’t possible to create taskbar pins from the installer on later Windows versions.

Install a desktop shortcut — DESKTOP_SHORTCUT={true,false}
Set to false to disable creating a shortcut on the desktop. true by default.

Install a start menu shortcut — START_MENU_SHORTCUT={true,false}
Set to false to disable creating a Start menu shortcut. true by default.

Disable the maintenance service — INSTALL_MAINTENANCE_SERVICE={true,false}
Set to false to disable installing the Mozilla Maintenance Service. This will effectively prevent users from installing Firefox updates if they do not have write permissions to the installation directory. true by default.

Disable removing distribution directory — REMOVE_DISTRIBUTION_DIR={true,false}
Set to false to disable removing the distribution directory from an existing installation that’s being paved over. By default this is true and the directory is removed.

Prevent rebooting — PREVENT_REBOOT_REQUIRED={true,false}
Set to true to keep the installer from taking actions that would require rebooting the machine to complete, normally because files are in use. This should not be needed under normal circumstances unless you’re paving over a copy of Firefox that was running while the installer was trying to run, and setting this option in that case may result in an incomplete installation. false by default.

Bundle extensions — OPTIONAL_EXTENSIONS={true,false}
Set to false to disable installing any bundled extensions that are present. true by default.

Application files extraction directory — EXTRACT_DIR=
Extract the application files to the given directory and exit without actually running the installer. Of course, this means all other options will be ignored.

MSIEXEC options

The command line parameters for msiexec.exe (the Windows component responsible for installing, uninstalling, and otherwise working with MSI files) are documented here and also by the output of the /? option. Our MSI packages, because they wrap a .exe installer and don’t really use the MSI framework, do not support many of the command line parameters available to msiexec. This document lists the msiexec parameters that are supported and unsupported for use with our MSI packages.

Unsupported MSIEXEC Options

  • /fRepairs the product.
  • /aAdministrative installation.
  • /x or /uninstallUninstalls the product.
  • /j along with /t, /g, and /cAdvertises the product.
  • /nSpecifies a particular instance of the product.
  • /p or /updateApplies a patch (.msp) file.

Example configuration

Here’s an example of a valid .mst file to help understand how options can be changed along with the MSI directory for mozilla central:

  • MST file example
  • MSI installer nightly builds
  • MSI installer current release build

Logging can be configured on the MSI to help troubleshoot installation issues.

There are several ways to use the MSI file with configurable parameters exposed in Firefox MSI:

Рейтинг автора
5
Материал подготовил
Максим Иванов
Наш эксперт
Написано статей
129
Ссылка на основную публикацию
Похожие публикации