- profile: Name of the distribution/desktop profile.
- installOptions: Array with installation options.
- installParams: Array with installation parameters.
- err: Variable to write error messages to.
- showMessages: Set to true, if the messages should be shown directly.
- 0 on success, otherwise 1.