You can uninstall components in an application process
by calling component processes. You can also use the Rollback Component
step to roll a component back to the version in a snapshot.
Before you begin
- Create an application and add one or more components to the application.
- Create an application process.
- Create component processes for each component.
About this task
There are three basic ways to uninstall a component. In each
case, you add steps to an application process to manipulate the deployed
component versions.
- You can install a new version of a component over the old version.
In this case, simply run an application process that includes the
deployment process for the component.
- You can run the uninstall component process for the component:
- Create a component process of the Uninstall type and add steps
to uninstall the component.
- In an application process, add the Uninstall Component step and
specify the component and the component process.
- Run the application process. If the process succeeds, the inventory
for the environment shows that the component is no longer installed.
- You can roll back incremental versions of a component to the versions
in a specified snapshot. In this case, the application process runs
the uninstall process for each component version that is not in the
snapshot.
- Create a snapshot that includes the component version that you
want to roll back to.
- Create a component process of the Uninstall type and add steps
to uninstall the component.
- In an application process, add the Rollback Component step and
specify the component and the component process.
- In the Rollback Component step, specify the Rollback type parameter:
- If you specify Remove Undesired Incremental Versions,
the server runs the uninstall component process for each incremental
component version that is not in the snapshot.
- If you specify Replace with Last Deployed, the
server runs the uninstall component process for each incremental component
version and then runs the installation component process for the component
version that is in the snapshot.
For more information about the Rollback Component step, see Rollback Component.
- Run the application process. In this case, you must specify a
snapshot for the Rollback Component step.