Apple’s Worldwide Developers Conference to kick off June 10 at 10 a.m. PDT with Keynote address

The Keynote will be available to stream on apple.com, the Apple Developer app, the Apple TV app, and the Apple YouTube channel. On-demand playback will be available after the conclusion of the stream.

You can make a difference in the Apple Support Community!

When you sign up with your Apple ID, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

How to force the MacOS PKG to ask the user to move the installer to trash after the install?

Does anybody know how to setup the MacOS (M3, Sonoma 14.4.1) installer (pkg file created by pkgbuild/productbuild, contained within dmg) to automatically ask the user to move the installer (the whole wrapping dmg) to trash after the installation? I did not find any corresponding setting for pkgbuild/productbuild util or within distribution xml. I know that I can do that using post install script but I do not want to follow this path if there exists out of the box solution for this.

I tried to unpack (using pkgutil --expand-full command) some existing installers (third party tools) which are able to fire this dialog but I did not find any corresponding script or settings either. What am I missing? Thank you.

Posted on May 15, 2024 11:14 PM

Reply
1 reply

How to force the MacOS PKG to ask the user to move the installer to trash after the install?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.