AddUninstallRecord--Notify Software Delivery that a Software Package Was Uninstalled

This command adds a record notifying Software Delivery that a previously installed software package has been uninstalled. If there is no installation that the uninstallation record can be associated with, the result of the command is not saved.
cla140
This command adds a record notifying Software Delivery that a previously installed software package has been uninstalled. If there is no installation that the uninstallation record can be associated with, the result of the command is not saved.
Syntax
AddUninstallRecord item version procedure date | current time | current orderedby comment [target="targetname"]
  • item
    Name of the software package.
  • version
    Version of the software package.
  • procedure
    Blank string (reserved for future use).
  • date
    Specifies the date of the installation. You can also use the keyword 
    current
    .
    Format of date: YYYY-MM-DD
  • time
    Specifies the time of the installation. You can also use the keyword 
    current
    .
    Format of time: HH:MM
  • orderedby
    This parameter is optional and provides an account name, for example, DomainX\UserY.
    Default: Current user running the SecureContainer command.
  • comment
    Your own comments.
  • [target="targetname"]
    Specifies whether the command is applicable for the computer unit (default), or any valid or existing user profile units on the same computer. You can specify any target except the following targets:
    • On the computer that you are running the command.
    • From the user profile on the same computer you are running the command on.
 
Example:
In the following example, Software Delivery is notified that an uninstall record for software item Product Y Version 1.2, using procedure Uninstall, should be added. The current date and sda_time are used for the uninstallation. Ordered by will list Automatic by Job and the comment will be Upgraded by Product Y v2.0 install.
sd_acmd adduninstallrecord "Product Y" "1.2" "Uninstall" "" current current "Automatic by Job" "Upgraded by Product Y v2.0 install"
In the case previously shown, a blank string was used for the install procedure. If two installations were previously made, using Install1 and Install2 as install procedures, only one of these installations will be deleted. If however * is used instead, both installations will be deleted.