Installer 10.7 | Uninstalling | Uninstall Using a Script in Console Mode | Create a Script
 
Create a Script
*To create an uninstallation script and uninstall products from the local machine, specify the -writeUninstallScript parameter on the command you run to start the uninstaller (see Start the Uninstaller). For example:
uninstall -writeUninstallScript full_path_to_new_script_file -console
*To create an uninstallation script without uninstalling products on the local machine, specify the -editUninstallScript parameter on the command you run to start the uninstaller (see Start the Uninstaller). For example:
uninstall -editUninstallScript full_path_to_new_script_file -console
*To create an uninstallation script using an existing script as a template, specify the -readUninstallScript and -writeUninstallScript parameters on the command you run to start the uninstaller (see Start the Uninstaller). For example:
uninstall -readUninstallScript full_path_to_existing_script_file
-writeUninstallScript full_path_to_new_script_file -console