$BeginUninstallScript

You can use this label to add commands to a package that should ONLY be executed when the package is uninstalled. This allows you, for example, to undo the consequences of installation commands for which there is no "reversal".

All commands between the $BeginUninstallScript marker and the end of the script are executed when the package is uninstalled (and only when the package is uninstalled). 

Procedure: 

  1. If not already present in the package template used, add the $BeginUninstallScript label to the end of the script. 
  2. After the label, insert the commands to be executed when the package is uninstalled. 


Corresponds to DSM eScript label:

  • $BeginUninstallScript


See also: