Validating package payload
You can either apply an unattend answer file to the offline image, or you can add or remove the package directly from the command prompt.
If you are installing multiple packages to a Windows image, and there are dependency requirements, the best way to ensure the correct order of the installation is by using an answer file.
Packages are members of a chain that the bootstrapper manages.
There must be at least one package or the bootstrapper has no work to do. Additional payloads and containers may be referenced by a package.
Open Terminal and run the following command to change to the scripts directory: cd /Users/username/Desktop/Run_Software_Update/scripts 5.
Run the following command to create a new file inside scripts named postinstall (By default, the pkgbuild command will use scripts named postinstall for a package’s post-installation action): pico postinstall 6. Once the script’s content has been added to the postinstall file, run the following command to make the script executable: chmod a x /Users/username/Desktop/Run_Software_Update/scripts/postinstall sudo pkgbuild --identifier com.company.run_software_update --nopayload --scripts /Users/username/Desktop/Run_Software_Update/scripts "/Users/username/Desktop/Run_Software_Update/Run Apple Software Update and Restart.pkg" This will create a payload-free package named Run Apple Software Update and Restart that will incorporate the postinstall script you created earlier.
The funny thing is that I did find something wrong (no DTD) with processing my XML but only if I tell libxml parser to validate the XML.
One of the tools that Apple included with Lion and Mountain Lion is the command-line tool pkgbuild.
The "container" concept is still under some design tweaks but it is shaping up to be quite a powerful concept (and it addresses the question many asked).
The Run Apple Software Update and Restart installer package will be saved to /Users/username/Desktop/Run_Software_Update To help avoid problems with 10.8’s Gatekeeper, you may want to sign your payload-free package with an Apple Developer ID Installer certificate as part of creating it.
Signing with an Developer ID Installer certificate will cue Gatekeeper that this is a “known” installer that can be opened without a problem.
So let me walk you through the list of primitives that Burn will process and how they stack together.
A package is a unit of change (install, repair, patch, uninstall) for the bootstrapper.