Reply To: Pkg app getting installed but also removed after pushing

Zach GoodmanZach Goodman
5 pts

Hello @elvira, there could be a simple explanation for this behavior. A pkg file is a package installer that provides the system with instructions to moves the application file into respective locations. Now, since the pkg file you mentioned contains both the instructions to install and remove the app, it is highly likely it is executing both the operations simultaneously on the system. When you deploy the pkg file into the system, Hexnode applies the flow provided in the Apple MDM protocol, so the behavior is not something that can be altered from the MDM point of view.

Could you try converting the file into the dmg format and deploying that instead? Dmg files are disk image files and behaves differently from pkg files. To convert a pkg file to dmg, you can follow the below steps on a Mac system –

  1. Open the Finder app.
  2. Place the pkg file inside a new folder and note the location of the folder. You can create a new folder from the Finder menu bar by selecting File > New Folder with “app_name.pkg”.
  3. Open the Disk Utility app.
  4. From the Disk Utility menu bar, select File > New Image > Image from Folder….
  5. Choose the folder earlier created.
  6. Provide a name for the dmg file and click Save.

Once you’ve created the dmg file, continue to add the app on Hexnode just like you added the pkg file by navigating to Apps > +Add Apps > Enterprise Apps. You may then install the application on your Mac devices via the Install Application action or by setting them as a Mandatory App. Hope this resolves your issue.

Zach Goodman
Hexnode UEM