Huh. I just did a nopkg type the other day to add users to _lpadmin, except I'd followed an example of a previous post on here re: Dropbox, and did the "install" part in the preinstall_script.. except in my case, I want to also be able to remove it.
I can't think of an elegant way to contain the install logic within installcheck_script as you've done and still be able to support removal.. but this seems to work well enough.
<string>testing</string>
<string>production</string>
</array>
<key>description</key>
<string></string>
<key>display_name</key>
<string>System Settings: Add 'everyone' to '_lpadmin'</string>
<key>installer_type</key>
<string>nopkg</string>
<key>installcheck_script</key>
<string>#!/bin/bash
# Get UUID of everyone group
EVERYONE=`dsmemberutil getuuid -G everyone`
# Check if everyone's UUID is in _lpadmin's NestedGroups
! dscl /Local/Default -read Groups/_lpadmin NestedGroups | grep "$EVERYONE"
</string>
<key>minimum_os_version</key>
<string>10.6.8</string>
<key>name</key>
<string>Settings_AddEveryoneToLpadmin</string>
<key>preinstall_script</key>
<string>#!/bin/sh
/usr/sbin/dseditgroup -o edit -a everyone -t group _lpadmin
</string>
<key>unattended_install</key>
<true/>
<key>uninstall_method</key>
<string>uninstall_script</string>
<key>uninstall_script</key>
<string>#!/bin/sh
/usr/sbin/dseditgroup -o edit -d everyone -t group _lpadmin
</string>
<key>uninstallable</key>
<true/>
<key>version</key>
<string>2012.08.31</string>
</dict>
</plist>