successfully removed my component from Netscape but all that is left is deleting the files within the tree. I have a 6 files in the components directory and 1 file within the chrome directory. Is there an easy way to
You can get the directory locations from the nsIDirectoryService interface... see http://lxr.mozilla.org/seamonkey/source/xpcom/io/nsIDirectoryService.idl for the interface. You can obtain the interface thus:
var dirService = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIDirectoryService);
See http://lxr.mozilla.org/seamonkey/source/xpcom/io/nsDirectoryServiceDefs.h for the appropriate strings... you probably want
NS_XPCOM_COMPONENT_DIR "ComsD"
and
NS_OS_CURRENT_PROCESS_DIR "CurProcD"\
Once you have obtained an nsIFile, you can .Append your filenames to it and use the .Remove() method. see http://lxr.mozilla.org/seamonkey/source/xpcom/io/nsIFile.idl
CAUTION:
you probably cannot remove your components while netscape is running. You might be able to tell XPCOM to unload a specific component so that you can delete it, but I don't know how.
You should also note that you really ought to update the installed-chrome.txt file to remove your chrome references and re-register chrome. Unfortunately, this is currently impossible (or almost-impossible, requiring large hackery). I'm working on a better way to install and uninstall extensions, but it's going to take a while to get all the pieces working properly.
--BDS
