Comments on: How to run a clean-up script when your extension is uninstalled https://blog.iosart.com/2004/08/20/how-to-run-a-clean-up-script-when-your-extension-is-uninstalled/ web ~ music ~ photography ~ life Mon, 29 Nov 2010 16:28:55 +0000 hourly 1 http://wordpress.org/?v=4.2.18 By: ayembee https://blog.iosart.com/2004/08/20/how-to-run-a-clean-up-script-when-your-extension-is-uninstalled/comment-page-1/#comment-271 Tue, 16 Aug 2005 00:47:00 +0000 http://www.iosart.com/blog/archives/2004/08/20/13/#comment-271 nice… at the moment i have a strong interest in something that works from the other direction — is it possible to run code on installation that can clean out an old version of your extension? (if a change of GUIDs becomes necessary, for instance)

]]>
By: Hurry https://blog.iosart.com/2004/08/20/how-to-run-a-clean-up-script-when-your-extension-is-uninstalled/comment-page-1/#comment-264 Tue, 09 Aug 2005 03:23:29 +0000 http://www.iosart.com/blog/archives/2004/08/20/13/#comment-264 Nice concept, but I am a little dumb here. I am a newbie, could you give me complete step by step to do this clean up with the code? I really appreciate your help.

]]>
By: Gergo https://blog.iosart.com/2004/08/20/how-to-run-a-clean-up-script-when-your-extension-is-uninstalled/comment-page-1/#comment-188 Tue, 12 Jul 2005 11:07:37 +0000 http://www.iosart.com/blog/archives/2004/08/20/13/#comment-188 Great idea,
I was looking for this functionality and found ‘Adding entries to the uninstall log’ on MozillaZine. Unfortunately that method needs to add each file separately to the Uninstall file in the extension directory. In my case I save a lot of web pages (implementing my own cache) and it would be too much files to add to the list. It seems to be much easier to delete my cache’s root directory recursively from a script on uninstall.
Thanks a lot.

]]>
By: Firefox Fanatic https://blog.iosart.com/2004/08/20/how-to-run-a-clean-up-script-when-your-extension-is-uninstalled/comment-page-1/#comment-59 Mon, 06 Jun 2005 05:08:07 +0000 http://www.iosart.com/blog/archives/2004/08/20/13/#comment-59 I’m not any big programmer or anything but sometimes when i uninstall an extension from firefox and i check my profile folder i still see folders containing scripts n other stuff from the uninstalled extensions.. I’m not sure if this is supposed to be like tht, but if the solution u stated above can clean up those unnecesary files then yes it is a good idea that should be followed up

]]>
By: Iosart https://blog.iosart.com/2004/08/20/how-to-run-a-clean-up-script-when-your-extension-is-uninstalled/comment-page-1/#comment-38 Thu, 05 May 2005 18:53:54 +0000 http://www.iosart.com/blog/archives/2004/08/20/13/#comment-38 The code for this technique can be found in my FirefoxView extension.

]]>
By: Duane Fields https://blog.iosart.com/2004/08/20/how-to-run-a-clean-up-script-when-your-extension-is-uninstalled/comment-page-1/#comment-37 Thu, 05 May 2005 17:24:44 +0000 http://www.iosart.com/blog/archives/2004/08/20/13/#comment-37 Could you send me your example “uninstall” extension hook code?

]]>
By: mark https://blog.iosart.com/2004/08/20/how-to-run-a-clean-up-script-when-your-extension-is-uninstalled/comment-page-1/#comment-6 Wed, 01 Dec 2004 14:48:13 +0000 http://www.iosart.com/blog/archives/2004/08/20/13/#comment-6 Thanks too. I was looking for a post uninstall extension script or event but soon realized it didn’t exist yet. I would appreciate seeing code on using nsIExtensionManager for this purpose. Let’s hope an onuninstall event is added to make handling easier.

]]>
By: Jed https://blog.iosart.com/2004/08/20/how-to-run-a-clean-up-script-when-your-extension-is-uninstalled/comment-page-1/#comment-5 Wed, 01 Dec 2004 14:47:36 +0000 http://www.iosart.com/blog/archives/2004/08/20/13/#comment-5 Awesome, I woul definitally like this for my QuickNOte/BBCode and WebMailCompose extensions, as the firefox uninstaller doesn’t get rid of prefs that I want removed.
Thanks once again alex.

]]>