You create the initial state file by running the installer interactively using the parameters of the installer command that tell the installer to capture your answers. As you proceed through the pages of the installer, your answers are captured and a state file is generated. The installer determines the order of the product components to be installed, so you can specify the components in any order. When you complete the installation, the state file is available in the location that you specified.
You can use the -no option if you do not want software to be installed during this session.
To create a state file using the graphical interface:
./installer -saveState statefile_path
To create a state file using the text-based interface:
./installer -nodisplay -saveState statefile_path
To create a state file using the graphical interface without installing software in this session:
./installer -no -saveState statefile_path
Full syntax for the installer command can be found in Appendix F, Installation Commands.
Refer to Appendix G, Example State File to see an example of a generated state file.