- 02 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
How to add a manufacturer's printer installer application to a Custom Mac Popup Package
- Updated on 02 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
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."