Re: Payload free packages Printer script
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:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=vMlegdtCCAZ6NAs63PfHaR1gYzEWIujUriCVXn8p4hM=; b=hZ4dRogwss3VKxJpBKcXAXtH6qt4sSE2fV+DjBZy2lOehfIBAU//f46BH/1wDfRA8K 4kDgOn1QeyadeRj+owsYf0VmNNl4tnhIem+GsJY4VkKFDKgDKN0FsNcScP+zfB4kWPEs l/7TfpC1E4aWvOC+zfk8DIo/T7N9uAYEjw38c= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=Dx/XI3NsNYVlqzakKNRSFxjpHa57VHYQGXbYPNGlHeZcBwZ6dO1g1p7AdZ7+jv2uGW km6uUokX9nzKLuf8C1ZkzYKpOCDhhN3Q21/9KVbLzuuCjv2nv83t35Ibm7QHt5dJ4mub 4w7k2tXO2UrynRWAbaLvE11Dq3Ofh98vCUAEc= 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: Why not just quickly code a Setup Assistant? There are even some sample projects available (OK a bit old though): http://s.sudre.free.fr/Software/CVSSUA.html http://s.sudre.free.fr/Software/AssistantKit.html _______________________________________________ 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... Since you basically want to run a command line with very specific data (like the IP address), why do you need a package? This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev