Issue Deploying Mac Application
I'm looking to create a managed installation to deploy a Mac application. The installer is packed as a zip file, so as per previous managed installations for Mac, I override the default installation with a command to unzip the installer archive and then run the installer that was in the archive. e.g.unzip -o "MYAPP.ZIP" && installer -pkg "MYAPP.pkg -target /
The issue is that the pkg installer is two levels down in a subfolder of the extracted files, and not the root. I've verified that the package does indeed extract successfully in the Kace data downloads folder, but the package/installer will not run after the fact. I've tried pointing to the installer like this: unzip -o "MYAPP.ZIP" && installer -pkg "/subfolder1/subfolder2/MYAPP.pkg -target / (though I omit the full path to the Kace downloads folder) but it doesn't seem to find the path intuitively. Any help is appreciated.
I have found that the SMA performs managed installs for macOS much better if you upload a DMG instead of a ZIP.
- Create a dmg containing the pkg file and nothing else
Open Terminal and run this command:
hdiutil create -srcfolder path/to/package.pkg package.dmg
- Upload package.dmg to the software title
- Create your managed install and use the default installation
The client will download the dmg, mount it and then run whatever package is inside.