Creating feature in mac app to override the users security setting

Kimpoy picture Kimpoy · Aug 21, 2012 · Viewed 46.3k times · Source

I'm a newbie at mac osx development. I would like to know if there's any way to override the mac desktop security settings to allow an application - which is not registered in the Mac App Store, to be installed?

The setting should come from the app that I'm trying to install. That means, whenever I install the app to any mac computer, regardless of its security settings as the following,

Allow applications downloaded from:

  • Mac App Store
  • Mac App Store and identified developers
  • Anywhere

The app should set the settings to Anywhere, allowing it to be installed. Any help would be very much appreciated.

Answer

CodeCurmudgeon picture CodeCurmudgeon · Sep 7, 2012
  1. Launch System Preferences from the Apple menu.
  2. Choose “Security & Privacy” and then click the “General” tab, followed by clicking the lock icon in the corner to unlock the settings.
  3. Look for “Allow applications downloaded from:” and choose “Anywhere”.
  4. Accept the security warning and allow.

Note that you should be careful and aware that now the job of protecting the system from malicious apps belongs to you instead of the OS.