Sorry for cross posting, I was not sure where this belongs.
In my search for uninstall feature I stumbled on chrome Interface's
.uninstallPackage method. But I can't make it work. Is this implemented?
I tried this code, which I modified from Uninstall skin code in
Preferences -> Appereance -> Themes:
-----
const DEBUG_USE_PROFILE = true; //?
try {
var chromeRegistry =
Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService();
if ( chromeRegistry )
chromeRegistry = chromeRegistry.QueryInterface(
Components.interfaces.nsIChromeRegistry );
}
catch(e) {}
chromeRegistry.uninstallPackage("mozgest", DEBUG_USE_PROFILE);
----
I get some obscure error. Am I doing something wrong?
--mondo