Note: These installation steps are intended for developers; end-users will be supplied with a Mozilla .xpi package that they can simply download and double-click on to install. For Windows users, a batch file for Firefox Browser users called "WinSetup.bat" semi-automates the installation process, with minor configuration changes required as prompted at the end of the installation. The three main points of installation are as follows:
For the Mozilla Internet Suite:
Footnote 1: Junctions in Windows are similar to symbolic links in UNIX, with the additional restriction that they can only 'symlink' to other directories or roots of disk drives. You can create them with Sysinternals's free junction utility: http://www.sysinternals.com/Utilities/Junction.html
Example: You could create a junction for our purposes by doing this:
junction "C:\MyCodeRepository\AnnodexGeckoPlugin\chrome\afeview"
"C:\Program Files\Mozilla Firefox\chrome\afeview" or "C:\Program Files\mozilla.org\Mozilla\chrome"
The ANXLoader component associates the "application/x-annodex" MIME type with the AFEView chrome, so that chrome://afeview/content/afeview.xul is launched whenever the user loads any file of type application/x-annodex. The installation procedure is slightly different depending on whether you use the Mozilla browser and email client suite, or the standalone Firefox Web Browser:
1.2.1 Firefox Browser
- In Windows: Copy the components\ANXLoader.js file to your "C:\Program Files\Mozilla Firefox\Components\" directory. Then, you will need to delete the following XML configuration file, so that Firefox rescans the components directory for new files the next time it starts up:
C:\Documents and Settings\YOUR_USERNAME\Application Data\Mozilla\Firefox\Profiles\XXXXXXXX.default\compreg.dat
- Mac OS X: Copy or symlink the components\ANXLoader.js file to your "/Applications/Firefox.app/Contents/MacOS/components/" directory. Then, you will need to delete the following file, so that Firefox rescans the components directory for new files the next time it starts up:
~/Library/Application Support/Firefox/Profiles/default.XXX/compreg.dat
- Linux: Copy the ANXLoader.js file to the default components directory of your Firefox installation. You must locate and delete the compreg.dat profile file for Mozilla Firefox to correctly reconfigure the plug-in at next restart.
1.2.2 Mozilla Internet Suite
- Windows: Copy the ANXLoader.js file to your "C:\Program Files\mozilla.org\Mozilla\components" directory. Then, you will need to delete the following XML configuration file, so that Mozilla rescans the components directory for new files the next time it starts up:
C:\Program Files\mozilla.org\Mozilla\components\compreg.dat
- Mac OS X: Copy or symlink the ANXLoader.js file to your "/Applications/Mozilla.app/Contents/MacOS/components/" directory. Then, you will need to delete the following XML configuration file, so that Mozilla rescans the components directory for new files the next time it starts up:
/Applications/Mozilla.app/Contents/MacOS/components/compreg.dat
- Linux: Copy the ANXLoader.js file to the default components directory of your Mozilla installation.
The chrome and media engine are packaged as separate .XPIs. While the chrome is the same on all platforms, a different video plug-in is required for each operating system and CPU architecture. The two main components to AFE are as follows:
| Directory | Contents |
| /trunk/Core | Core XPI Files: Refer to XUL Core development documentation for further information. |
| /trunk/Core/chrome/afeview | The Core XUL Annodex Firefox Viewer files. Refer to section 2.0 for further details. |
| /trunk/Core/chrome/afeview/content | Contains the Core XPI interface (afeview.xul) and Javascript code (afeview.js). This is elaborated in section 1.1. |
| /trunk/Core/chrome/afeview/locale | Contains the stub directory which will hold the internationalisation of the plug-in interface. |
| /trunk/Core/chrome/afeview/skin | Contains the graphical elements of the Core XPI and CSS Stylesheet. |
| /trunk/Core/components | Contains the ANXLoader Mozilla component (ANXLoader.js). This is elaborated in section 1.2. |
| /trunk/Core/testcode | Contains stub code methods to test XML to RDF parser embedded in the Core XPI. |
| /trunk/Docs | Documentation directory, in which this document and release notes reside. |
| /trunk/Installer | Linux Shell Scripts for compilation of files into a XPI Firefox Plug-ins Installer; and Windows Installer Batch file. Refer to section 1.0 for details. |
| /trunk/MediaEngines | Contents of VLC Media Engine plug-in for Mozilla Firefox Browser: Refer to Media Engine development documentation for further information |