Technical professionals. Trusted advisors. Certified expertise.

HCS Blog

Problem-solving by Apple Certified Professionals

Create a payload free package using pkgbuild

Step 1.  Create a folder on the desktop called scripts.

Step 2.  Create a script named “postinstall” and put it in the scripts folder on the Desktop.  

NOTE:  do not add .sh to your script name or it will fail.  Best practice is to use a plain text editor when creating scripts.  IE.. TextWrangler or pico in the CLI.

Step 3.  Run the following command.  Enter your administrator password when prompted.

sudo pkgbuild --identifier com.mypackage.com --nopayload --scripts /Users/work/Desktop/scripts /Users/work/Desktop/MyPayFree.pkg

Step 4.  The package will be created and saved to your desktop.
×
Stay Informed

When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.

Using the sed command to find and replace words in...
How to disable VirtualBox auto updates from the co...

Locations


New York

Connecticut
Florida
Louisiana
Chicago

Corporate Headquarters
New York

80 Orville Drive Suite 100
Bohemia, NY 11716
Tel: (866) 518-9672
This email address is being protected from spambots. You need JavaScript enabled to view it.

Connecticut

65 High Ridge Road #510
Stamford, CT 06905
Tel: (866) 518-9672
This email address is being protected from spambots. You need JavaScript enabled to view it.

Florida

3321 SW 194th Terrace
Miramar, FL 33029
Tel: (866) 518-9672
This email address is being protected from spambots. You need JavaScript enabled to view it.

Louisiana

218 Barksdale Drive
Broussard LA 70518
This email address is being protected from spambots. You need JavaScript enabled to view it.

Chicago

4 Knollwood Place
Joliet, IL 60433
This email address is being protected from spambots. You need JavaScript enabled to view it.

London

10 Grosvenor Court
Rayners Road
London SW15 2AX UK

Stay Connected

© Copyright 2023, HCS Technology Group. All Rights Reserved.