Skip to content

v4.0 Installer

Andrey Kurilov edited this page May 28, 2018 · 1 revision

Introduction

The installer hook is invoked each time Mongoose runs. However, installer may do no persistent changes if all required/supplementary files are already installed.

Stages

  1. Installer loads the default configuration from the resources to determine the version. The version is used to determine the Mongoose home path which is <USER_HOME_DIR>/.mongoose/<VERSION>.

  2. Installer copies the required and supplementary files into the Mongoose home. These files are default configuration, custom content files, scenarios and extensions.

Note: the file is not overwritten if the file with the same name alrady exists in the Mongoose home directory.

  1. Initial configuration schema is being resolved and loaded.

  2. Initial default configuration is being loaded.

  3. Installer copies the resolved Mongoose extensions to the <USER_HOME_DIR>/.mongoose/<VERSION>/ext directory.

  4. Then each extension installs itself. The Mongoose home directory is passed as an argument for the extension installer hook. The extension inherits the basic installer functionality to copy the specific files for the given extension.

  5. Each extension provides its own defaults configuration (if any) from the installed file (usually <USER_HOME_DIR>/.mongoose/<VERSION>/config/defaults****.json).

Clone this wiki locally