4

I'm automating some system installs and I need to install a prefPane.

something like installer -pkg xxx.pkg -target / that I use for installing .pkg files.

11

Simple preference panes can be "installed" by moving them to

/Users/yourname/Library/PreferencePanes/

and "uninstalled" by removing them from there (just tested it with Secrets).

You can "launch" them using open.

Many preference panes install additional daemons/agents or system components upon launch or user action. You should be able to use AppleScript to perform these UI actions, but they're custom to each preference pane.

2
  • might be worth to mention the /System/Library/PreferencePanes as well. and, since I've already said that, why not rather than /Users/yourname/ simply using the tilde expansion ~/? – cregox May 11 '17 at 8:58
  • One tip if using command line - use cp -r something.prefPane ~/Library/PreferencePanes to install a pref pane for personal use. Don't put a / after the prefPane argument - it is directory but the / makes cp do the wrong thing. – RichVel Dec 3 '17 at 10:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.