Requiring Elevated Privileges for OS or OS X–Based Installers and Uninstallers
If you want your OS or OS X–based installers and uninstallers to install files to and remove files from locations where write permissions are restricted for standard users, you can configure your project to require authentication. When authentication is required and standard users who are not root users or administrative users with adequate privileges try to launch your installer or uninstaller, they are prompted to enter an administrator name and password in order to proceed.
Note that in order to require authentication for OS or OS X–based installers and uninstallers, they must be code signed. To learn more, see About Authentication and Code-Signing Support for OS or OS X–Based Installers.
See Also
Code-Signing Methods for OS or OS X–Based Installers
Requirements for Code-Signing Support for OS or OS X–Based Installers