Pkg app getting installed but also removed after pushingSolved

Participant
Discussion
3 years ago

Hi everyone,
We are trying to deploy this pkg app to our endpoints but as soon as it gets installed on the Mac, it also gets uninstalled. Now we manually tried to install the app and see that the pkg file opens a wizard, somewhere around the second step we get to select whether to install or uninstall the app. Somehow, when we deploy the app through Hexnode I believe both these options are getting triggered simultaneously. Is there a way to get around this?

Replies (1)

Marked SolutionPending Review
Hexnode Expert
3 years ago
Marked SolutionPending Review

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.

Regards,
Zach Goodman
Hexnode UEM