site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=XCG8eTMMIrTJyiJhqXFqOklsuxcm7JxPWdTwEjxjv2I=; b=AVMiR/5MhI7NfAFCI0XDMN0/6cSZVGp7NwlzGqNhIkzPDCXdcXTsqO8mIVkKQTpCXo b/vUgLPx8tN+sTzy+3g9dMyM1yzU1dIFUjUYYi0i7LeGs4dEv1J/Xbb2SbAXqZywfdDg 0boNnxndPQU/T6I9In4T0GLXFpIvRzu/VVOzI= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=REVLT6SvHgoLVfih1IEGIg+JoNecRlYDSIoeRHKTNKOtyzcx88zvoHTI9oquS+yQOh 3UAlyuevznQbAVgB55seZBxzP7fsGXYkVuGGkgIEWqR+qRHNJAPr8s8JJ7n1GXjhh48c iQs2d/yzvKrrq3YFXeo+j59yjknlNnQoOLiWo= Thanks all. @nick I removed sudo @greg I added the shbang, it helps @bryan Admin is set on the installer @iceberg-dev Its not a stupid question, I'm just ignorant in programming. Shell scripting is one thing I can do, outside that I'm lost. If there is a good tutorial you can point me to, I would try to find the time to learn. Thakns It seems that my scripts were not built with the shbang, and that was the error. I was writing the scripts with shbang, but it didn't translate to the installer. I'm going to continue my testing, but so far, it's working Thanks all. On Tue, Jun 30, 2009 at 3:05 PM, Iceberg-Dev<dev.iceberg@gmail.com> wrote:
On Jun 30, 2009, at 3:46 PM, Rusty Myers wrote:
Hello,
We have a bunch of printers here. I wanted to make a package that would give users the choice to install the printer they want. I thought a payload free package could be used to do this.
I have tried to create a package that installs a file to /tmp and has a postflight script that adds the printer. The postflight script is very simple, it echo's one line with the printers name and then has the lpadmin command to add the printer.
I can't get this working correctly. It says the postflight script has failed. Anyone have a suggestion? I've looked at PrinterSetup from lucid systems, but it's more complex than what I need.
Also, the printer is not already added to the system at the time of running the script. The script also works from the command line. It has execute permissions.
My Script: echo "Add 201 Chambers Color" sudo lpadmin -p "201_Chambers_Color" -E -v lpd://192.168.5.32 -P "/Library/Printers/PPDs/Contents/Resources/Dell Laser Printer 5210n.gz" -L "201 Chambers Color"
Stupid question:
Since you basically want to run a command line with very specific data (like the IP address), why do you need a package?
Why not just quickly code a Setup Assistant?
There are even some sample projects available (OK a bit old though):
_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com