Desktop MSI installer and group policy installation guides#

plans-img Available on all plans

deployment-img self-hosted deployments

This guide provides steps to install the MSI and use Group Policies in Windows for Mattermost Enterprise or Professional. The MSI installer package can be downloaded here.

Download group policy and MSI installer files#

  1. Using a newly created Windows VM or dedicated Windows computer, make sure to use a Windows version that supports Edit group policy out of the box (i.e. Windows 10 Pro or Enterprise).

    When downloading group policy and MIS installer files, ensure to use a Windows version that supports Edit group policy.
  2. Navigate to the Mattermost Desktop repository on GitHub.com.

    Go to the mattermost/desktop repository on GitHub.
  3. Navigate to the release page for version v5.10.0 and download the appropriate installer for your version of Windows (32-bit vs. 64-bit).

  4. Download the source.zip file as well to extract group policy files.

    In the mattermost/desktop repository on GitHub, go to the release page for the latest desktop release, then download the installer for your version of Windows. Download the source.zip file as well to extract group policy files.

Install group policy files locally#

  1. Browse to the folder the above files were downloaded to and unzip the desktop-5.10.0.zip file in place.

    Go to the install download directory on your machine and unzip the ZIP file.
  2. Navigate to the unzipped desktop-5.10.0\resources\windows\gpo folder and copy the contents.

    Go to the \resources\windows\gpo directory and copy its contents.
  3. Navigate to the C:\Windows\PolicyDefinitions folder and paste the files copied in the last step.

    Go to the Windows\PolicyDefinitions directory and paste the files you copied in the previous step.
  4. Verify the mattermost.admx file is in the C:\Windows\PolicyDefinitions folder.

    Verify the mattermost.admx file is present in the Windows\PolicyDefinitions directory.
  5. Verify the mattermost.adml file is in the C:\Windows\PolicyDefinitions\en-US folder.

    Verify the mattermost.adml file is present in the Windows\PolicyDefinitions\en-US directory.

Note

  • \\FQDNDomain\sysvol\FQDNDomain\Policies\PolicyDefinitions can be used instead of C:\Windows\PolicyDefinitions if available.

  • \\FQDNDomain\sysvol\FQDNDomain\Policies\PolicyDefinitions\en-US can be used instead of C:\Windows\PolicyDefinitions\en-US if available.

Configure Mattermost using group policy settings#

  1. Run the Edit group policy application by selecting Start, typing gpedit into the search field, then selecting the resulting Edit group policy search option.

    When configuring Mattermost using group policy settings, run the Edit group policy application by going to Start, typing gpedit into the search field, then selecting the resulting Edit group policy search option.
  2. In the Edit group policy window, navigate to Local Computer Policy\Computer Configuration\Administrative Templates\Mattermost. In this example, double-click on DefaultServerList to set one or more default servers that will appear on app launch.

    In the Edit group policy window, go to Local Computer Policy > Computer Configuration > Administrative Templates > Mattermost. To set one or more default servers to appear on app launch, for example, double-click on DefaultServerList to begin.
  3. In the resulting window for DefaultServerList, select Enabled to turn the feature on, then select the Show… button in the Options: section of the window to add default servers.

    In the DefaultServerList window, enable the feature, then select Show..., located under Options, to add the default servers.
  4. In the resulting window, add desired Mattermost servers using a memorable name (i.e., Community) and the web URL of the Mattermost server (i.e., https://community.mattermost.com).

  5. Select OK twice, then close the Edit group policy app.

    Add the default servers by name and by URL, then select OK twice to close the Edit group policy application.

Verify group policy settings have been applied#

  1. Open up the Registry Editor by selecting Start, typing Registry Editor in the search field, then selecting the Registry Editor option in the search results.

    When verifying group policy settings, open the Registery Editor by going to Start, typing Registry Editor into the search field, then selecting the resulting Registry Editor search option.
  2. In the Registry Editor window, navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mattermost\DefaultServerList and verify the servers you added using the Edit group policy app are listed.

  3. Once verified, close the Registry Editor.

    Go to Computer > HKEY_LOCAL_MACHINE > SOFTWARE > Policies > Mattermost > DefaultServerList to veryfiy the servers you added, then close the Registry Editor.

Install the Mattermost Desktop App using the MSI installer#

Important

  • If the desktop app is running when you install via the MSI, Mattermost prompts you to close the app manually. After acknkowledging the prompt, select Retry to continue the MSI installation.

  • Avoid selecting Ignore. If you do, force close the desktop app using Task Manager, ensure the Mattermost.exe process is stopped, and then restart the MSI installation.

  1. Within the folder the MSI installer was downloaded to, double-click on the MSI installer to begin the Mattermost Desktop installation process.

    Go to the folder where you downloaded the Mattermost Desktop App, and double-click on the MSI file to begin the installation process.
  2. Installation of the MSI requires admin permission, so accept the resulting request to allow the installer to make changes to your device.

    You'll be prompted to allow the Mattermost Desktop App to make changes to your system. You must select Yes to continue with the installation process.
  3. Select Finish when the installation is complete.

    When the installation is complete, select Finish.

Verify group policy settings in the installed desktop app#

  1. Launch the newly installed Mattermost app from the Start menu.

  2. Verify the app loads the first server you defined in the Edit group policy app.

    Verify group policy settings in the Mattermost Desktop App by opening the app from the Start menu, and verifying that the app loads the first server you defined in the Edit group policy.

Advanced MSI options#

Silent installation#

Perform a silent installation of the MSI by running the following command:

Important

Ensure the desktop app is closed before proceeding with a silent installation. Because it’s a silent installation, Mattermost won’t prompt you to close the desktop app.

Perform a silent installation of MSI by running the following command:

msiexec /i mattermost-desktop-v5.10.0-x64.msi /qn

Note

  • You’ll need to update the version details in this command as new versions of the Mattermost desktop app are released.

  • You must be an administrator to run these commands, or you must run them from an admin command prompt or powershell.

From version v5.9.0 of the Mattermost desktop app, the following silent MSI installation options are also available.

Install for all users#

Use the ALLUSERS parameter to install the MSI for all users:

msiexec /i mattermost-desktop-v5.10.0-x64.msi ALLUSERS=1

Note

Specify an install directory#

Use the APPLICATIONFOLDER parameter to specify an installation directory for the MSI installation:

msiexec /i mattermost-desktop-v5.10.0-x64.msi APPLICATIONFOLDER=<install directory>

Change this command as new versions of the Mattermost Desktop App are released.