Execution Mode
The Installer uses different modes to install packages.
The following modes are currently available:
- Installation
Installs a package that has not been installed yet. - Uninstallation
Uninstalls a package that is already installed. - Reinstallation
Reinstalls the computer and user portion of a package that is already installed. - Repair
Reinstalls the computer portion of a package that is already installed. - Update
Installs a new revision of a package that has already been installed. The old revision is no longer valid and the system treats it as not installed. - Modification
Reinstalls a package that has already been installed based on changed installation parameters.
At the Package
The packaging administrator specifies which mode applies to which package (i.e. which mode is allowed). The default mode is Installation. This execution mode cannot be removed.
All other modes can be enabled for each package with the appropriate property <Mode> supported. Note that this may cause issues when executing the package, depending on the individual package. If issues arise we recommend not using the respective mode.
The following modes are not available for Software Sets: Reinstallation, Repair, Update and Modification . If you disable Uninstallation for a Software Set, this mode also applies to the associated components no matter what has been set for the individual component before.
At the Policy
When you assign a package, you can also specify the policy's execution mode as an action in the Software Shop. Therefore, the individual policy has the property Allow <mode> by end user. Depending on which mode you specify, the Software Shop provides Update or Reinstallation as policy properties.
In addition, you can also select the Cancel mode. This means that you can cancel the Repair or Reinstallation in the Software Shop.
You can also specify the execution mode by eScript. The
You can find out which installation mode applies in the eScript by using the CheckInstallMode condition, for example to run specific actions that depend on the execution mode.
Refer to the Chapter Compliance for more information on how to determine the correct execution mode to reach the compliance.
If the system determines an execution mode the package does not support, the Installer attempts to reach the desired compliance by uninstalling the package first and then installing it again.