packages icon indicating copy to clipboard operation
packages copied to clipboard

On install failure during PostInstall, the agent files remain on file system

Open iradization opened this issue 2 years ago • 3 comments

Hi, I was wondering if Packages have some attribute to auto-cleanup the payload part (copying the package contents to hard driver), or revert the whole operation, in case the installation fails during PostInstall script.

thanks !

iradization avatar Feb 26 '23 07:02 iradization

There is no such thing in Packages. If it exists, it would be in the Installation/PackageKit framework of macOS.

packagesdev avatar Feb 27 '23 19:02 packagesdev

Thanks for the guidance. do you know where can I find any reference for the packagekit... couldn't find any on the web

iradization avatar Feb 28 '23 18:02 iradization

PackageKit is one of the frameworks used by the installation mechanism in macOS, it includes the installd and shove tools which are responsible for extracting the files from the payload of the installation packages and "moving" them to their final locations.

packagesdev avatar Feb 28 '23 23:02 packagesdev