# Distribute macOS Enterprise App

Enterprise apps are developed and used within the company and are not available in the App Store. This makes the deployment of these apps a hefty job. An organization that manages its devices with Hexnode can easily distribute enterprise apps to the devices.

Add Mac enterprise apps to Hexnode app inventory
------------------------------------------------

In order to install enterprise apps on the device, add the apps to the Hexnode app inventory. Follow the below steps to add enterprise apps to the app inventory:

1. From the Hexnode UEM console, navigate to the **Apps** tab.
2. Click **+Add Apps > Enterprise App**.
3. Choose **Mac** as the platform.
4. Enter the **App Name**.
5. Choose either of the below options: 
    - **PKG/MPKG/DMG file**: Choose the PKG/MPKG/DMG file from your system. Next, either enable or disable the checkbox to notify the admin via email once the app upload succeeds or fails.
    - **From Manifest URL**: Enter the URL where the app resides.
6. Select a **Category** that the app can be placed in or add a new category by clicking the **+** button.
7. **Optional:** Specify the developer **TeamID** of the enterprise app.
8. Add a suitable description for the app and click **Add**.

[![Distribute macOS enterprise app to Mac devices using Hexnode MDM](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2021/05/Distribute-macOS-enterprise-app-to-Mac-using-Hexnode-MDM.png " Distribute-macOS-enterprise-app-to-Mac-using-Hexnode-MDM")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2021/05/Distribute-macOS-enterprise-app-to-Mac-using-Hexnode-MDM.png)

Distribute the app to macOS devices
-----------------------------------

Once the app is added to the inventory, you can push the apps to the target devices/groups using two methods: Required Apps policy and Install Application action.

### Method 1: Distribute via Install Application Action

1. Go to the **Manage** tab from the Hexnode dashboard.
2. Choose the target device/ device group from the list of enrolled devices.
3. Click **Actions** drop-down and choose **Install Application**.
4. Select the enterprise app and click **Next**.
5. For the selected app(s), you can configure [custom installation settings](https://www.hexnode.com/mobile-device-management/help/distribute-macos-enterprise-app-using-hexnode-uem/#installation-settings). Click on **Configure** to specify them and click **Save**.
6. Click on **Install**.

### Method 2: Distribute via Required Apps policy

1. Go to **Policies > New Policy**. You can also choose to continue with an existing policy. Enter the policy name and description (optional).
2. Select **macOS > App Management > Required Apps**. Click **Configure**.
3. Click **+Add** drop-down. Choose either of the following options: 
    - **Add App:** To deploy one or more apps from the app inventory.
    - **Add Group:** To deploy a group of apps as a whole. You can create an app group by navigating to Apps > [App groups](https://www.hexnode.com/mobile-device-management/help/how-to-configure-app-groups-using-hexnode-mdm/).
4. Choose the desired enterprise app from the list.
5. For the selected app(s), you can configure custom installation settings. Click on **Configure** to specify them.
#### Installation Settings

Hexnode enables you to configure success criteria during app installation via the Required Apps policy and the Install Application remote action.

**Success Criteria**

The installation is considered successful if the installed application meets any of the following success criteria:

1. **App Exists:** When this success criterion is selected, the **App Identifier** must be specified in the provided field. The app identifier is typically the *bundle ID* of the application. The installation is considered successful if the specified app identifier is found on the device.
    For example, the app identifier for Microsoft Teams would be *com.microsoft.teams2*.
2. **File Exists:** When this success criterion is selected, the **File Path** must be specified in the provided field. The *location* of the file is set as the file path. The installation is considered successful if the application is located at the specified file path on the device.
    For example, the file path for Microsoft Teams would be */Applications/Microsoft Teams.app*.

[![Configuring success criteria for DMG and PKG app installation on macOS using Hexnode UEM console.](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2018/09/Success-criteria-for-DMG-and-PKG-app-installation-for-macOS.png)](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2018/09/Success-criteria-for-DMG-and-PKG-app-installation-for-macOS.png "Success criteria for DMG and PKG app installation for macOS")

12. Specify the necessary settings and click **Save**.
13. Click on **Done**.
14. Next, associate the policy with the target device by clicking on **Policy Targets > +Add Devices**.
15. Select the target device and click **OK**.
16. Click **Save**.

 Notes:1. The application installs silently on the device without any user intervention.
2. At times, the application takes a couple of minutes to install depending on the size of the app and the network speed.
3. To install enterprise apps with DMG or MPKG files, the latest version of the Hexnode Agent app should be present on the device.