I do this and it works great for me. Here is the postflight script I use to install it with a package. Just make an installer package and install Keychain Minder in /Applications/Utilities. Change com.yourcompany in the script to whatever your orgs name is if you want.
[code]#!/bin/sh
# Install Keychain Minder and a Launchd item so it starts for every user.
# Declare ‘defaults’and ‘PlistBuddy’.
defaults=”/usr/bin/defaults”
PlistBuddy=”/usr/libexec/PlistBuddy”
# Declare our working directories.
PKG_DIR=”$1/Contents/Resources”
APP_DIR=”$3/Applications/Utilities”
LAUNCHD_DIR=”$3/Library/LaunchAgents”
# Install Launchd item to /Library/LaunchAgents.
$defaults write “${LAUNCHD_DIR}/com.yourcompany.keychainminder” Label com.yourcompany.keychainminder
$defaults write “${LAUNCHD_DIR}/com.yourcompany.keychainminder” ProgramArguments -array
$PlistBuddy -c “Add :ProgramArguments:Item\ 1 string /Applications/Utilities/Keychain\ Minder.app/Contents/MacOS/Keychain\ Minder” “${LAUNCHD_DIR}/com.yourcompany.keychainminder.plist”
$defaults write “${LAUNCHD_DIR}/com.yourcompany.keychainminder” RunAtLoad -bool YES
# Give Launchd item correct permissions.
chown root:wheel “${LAUNCHD_DIR}/com.yourcompany.keychainminder.plist”
chmod 644 “${LAUNCHD_DIR}/com.yourcompany.keychainminder.plist”[/code]
Comments are closed