Home  |  Blog Help Out  |  How-To Guides  |  Why Use Mozilla  |  About Jeremy

Extensions

Contact
Jeremy Gillick

Get Firefox!

ExtensionUninstaller API Technical Documentation

< BACK | INDEX | NEXT >

How to bundle the API with your extensions

If you want to use the API in your extensions, you'll probably need to bundle it in your installation. The easies way to do this, is throught the example code below:

1: <script> 2: var xpi = new Array(); 3: xpi["Your Application"] = "http://yourapp.com/myapp.xpi"; 4: xpi["ExtensionUninstaller API"] = "http://mozmonkey.com/extuninstaller_api/extuninstallapi.xpi"; 5: 6: InstallTrigger.install(xpi); 7: </script> Line 2

Define the installation array

Line 3

Add your application to the array. Replace "Your Application" with thet name of your app. Replace "http://yourapp.com/myapp.xpi" with the URL to your application's XPI.

Line 4

Add the ExtensionUninstaller API to the array.

Line 6

Install everything in the array.


< BACK | INDEX | NEXT >



Copyright © 2004 Jeremy Gillick, All rights reserved
All the content and code presented on this site is owned solely by Jeremy Gillick