Previous Topic: Remove Target--Remove a Target from a ComputerNext Topic: SetDownloadMethod


Remove Win32 Program

This command runs the uninstall command associated with a product registered under the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\”Product string”, where the “Product String” should be entered in the <registrykey> parameter.

Syntax:

sd_acmd RemoveWin32Pgm RegistryKey [Propertystring] 
RegistryKey

“Product String” of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\”Product string”

[Propertystring]

The <Propertystring> parameter may contain the following properties:
PARAMETERS=<User added parameters> - these may be command line parameters, like for unattended processing. The value will be appended to the command line found in the “QuietUninstallString” value, and if it is absent - the “UninstallString” value.
KEYEXISTS=1 - means that only a validation is to be performed. (Using this feature “Detect Installed” and “Verify Uninstalled” procedures may easily be created. The return value is 0 if the key exists otherwise 6020 ).
TIMEOUT=<timeot value> - as the initial uninstall process may spawn off the real uninstall process RemoveWin32Pgm may wait the specified time in seconds for the registry key to be removed. If the key persists after process completion (+ the time out time) an error code is returned.
OUTPUT=<file name> - enables logging to file during the processing.

Example:

In the following example

sd_acmd removewin32pgm registrykey="Jukebox 1.0" timeput=60

Software Delivery should remove the Jukebox program Version 1.0 from the computer within the timeout 60 seconds.