Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting "no install script." Is my RDF missing something?

1 view
Skip to first unread message

Benjamin Thompson

unread,
Nov 6, 2009, 10:48:54 AM11/6/09
to
I'm having a weird problem. When I use the Add-On Builder I get a
perfectly functioning XPI if I rename the file from .zip to .xpi. It
will install in Firefox without a problem. This is great, but of
course it's just a blank Add-On. I want my code in there. To do that I
have to unzip the thing, edit the files, and zip it back up again,
right?

[b]BUT[/b], If I extract the ZIP, and even without editing, zip it
back up again, and rename it to an XPI, I get a "no install script"
error when I attempt to use it. As far as I can tell, my [b]install.rdf
[/b] file has everything it needs. What could be the problem? The most
current RDF guide I've been able to find on this site is 2 years old,
and I can't tell if it's outdated info or not. Here's my file below:


[code]<?xml version="1.0" encoding="UTF-8"?>

<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:em="http://www.mozilla.org/2004/em-rdf#">

<Description about="urn:mozilla:install-manifest">

<em:id>csn...@rabidquill.com</em:id>
<em:type>2</em:type>
<em:name>CS Ninja</em:name>

<em:version>1.0</em:version>
<em:creator>BJT</em:creator>
<em:contributor></em:contributor>

<em:description>This add-on is intended to make some Customer Service
tasks at work a little easier.</em:description>


<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<!-- Firefox -->
<em:minVersion>3.5</em:minVersion>

<em:maxVersion>3.7a1pre</em:maxVersion>
</Description>
</em:targetApplication>

</Description>
</RDF>
[/code]


Any help would be great.

Jorge Villalobos

unread,
Nov 6, 2009, 12:03:18 PM11/6/09
to Benjamin Thompson

I think the problem you're experiencing is simply this:
1) The structure of the xpi is

extension.zip
- install.rdf
- chrome.manifest
- etc

2) You unzip your file and this creates a folder with the same name of
the zip file.

3) When you zip the file again, you're including the folder, so the end
result is something like this


extension.zip
- extension (folder)
- install.rdf
- chrome.manifest
- etc

Which doesn't work.

All you need to do is generate the zip without including the folder and
it should work again.

- Jorge Villalobos

0 new messages