How to add a manufacturer's printer installer application to a Custom Mac Popup Package
  • 02 Apr 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

How to add a manufacturer's printer installer application to a Custom Mac Popup Package

  • Dark
    Light
  • PDF

Article summary

Question:

I have to add the manufacturer's printer installer application to the Uniprint Mac Popup Package.  How do I do this? 


Answer:

Sometimes, a manufacturer's installer package is required in a Uniprint Mac Popup package in addition to the driver (.ppd) file.  If you have the .pkg file provided by the driver manufacturer, you can add it to the Pharos Mac package.  Make sure the .pkg file is in the Custom folder with the .ppd and the shell script (PostInstall.sh).  Also, add the following line to the beginning of the PostInstall.sh script:

sudo installer -pkg NameOfPackage.pkg -target /

The above should be added prior to any lpadmin line in the shell script.  There's a bit of a catch to this, though.  The popup.dmg file is most likely not big enough to store this .pkg file so you will have to increase the size of the .dmg you are working from prior to being able to add the file.  The easiest way to do this is via Terminal with the following command:

hdiutil resize -size 100MB Macintosh/Users/support/Desktop/popuprw.dmg

The above command is an example.  The file is being changed to 100MB and it is stored on the desktop so the directory to the file is /Macintosh/Users/Support/Desktop.  The file in which the size is being increased is popuprw.dmg.  Note that Disk Utility is used to change the file from ReadOnly to Re-writable first.  If you don't do this, the following error is received when you run the command.  "Operation not permitted."     


Was this article helpful?


Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.