Is there an API call allowing one to enable/disable a Firefox add-on?
You want to use the nsIExtensionManager interface.