Skip to content

Unregister DLL

Unregisters a DLL file or all DLL files within a specified directory using the regsvr32 command. This PowerBrick can be used to unregister COM components during a package uninstallation.

Required

The name of the DLL to unregister (for example: mylibrary.dll) or a path containing multiple DLLs to unregister (for example: $PackageRoot). If a path is provided, all DLL files in that path and its subdirectories will be unregistered.

Optional — Default: True

If enabled, errors during DLL unregistration will be ignored. If disabled, the PowerBrick will throw an error if the unregistration fails.

  • Category: System
  • Brick ID: DLL-Unregister
{
"category": "system",
"description": "Unregisters a DLL file or all DLL files within a specified directory using the regsvr32 command. This PowerBrick can be used to unregister COM components during a package uninstallation.",
"developerVendor": "CapaSystems A/S",
"displayName": null,
"id": "DLL-Unregister",
"name": "Unregister DLL",
"parameters": [
{
"defaultValue": "",
"defaultValueObject": null,
"description": "The name of the DLL to unregister (for example: mylibrary.dll) or a path containing multiple DLLs to unregister (for example: $PackageRoot). If a path is provided, all DLL files in that path and its subdirectories will be unregistered.",
"id": "DLL",
"name": "DLL Name Or Path",
"regExValidation": "",
"required": true,
"type": "TextBox",
"value": null,
"values": [],
"valuesObject": null
},
{
"defaultValue": "True",
"defaultValueObject": null,
"description": "If enabled, errors during DLL unregistration will be ignored. If disabled, the PowerBrick will throw an error if the unregistration fails.",
"id": "IgnoreErrors",
"name": "Ignore Errors",
"regExValidation": "",
"required": false,
"type": "Boolean",
"value": null,
"values": [],
"valuesObject": null
}
],
"powershell": {
"base64Encoded": true,
"function": "ZnVuY3Rpb2..."
},
"type": "powerbrick",
"version": "2026.7.2.1"
}