[Project_owners] dll in xpi; getResourceForItem failed

Armen Eyal aergis at gmail.com
Mon Mar 7 15:07:06 EST 2005


I wrote a gecko plugin, it works if i copy it to components folder manually,
but if i add my site to allowed websites and try to install it through
XPI it fails

stdout directed to dynamic console
stderr directed to dynamic console
*** loading the extensions datasource
*** getItemProperty failing for lack of an item. This means
getResourceForItem failed to locate a resource for aItemID (item ID =
tmp/test.xpi, property = disabled)
*** getItemProperty failing for lack of an item. This means
getResourceForItem failed to locate a resource for aItemID (item ID =
tmp/test.xpi, property = internalName)
*** state change = tmp/test.xpi, state = 3, value = 0


XPI contents:

[install.rdf]
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
xmlns:em="http://www.mozilla.org/2004/em-rdf#">
  <rdf:Description rdf:about="urn:mozilla:install-manifest">
    <em:id>{74A48DB8-7680-467b-B8DE-26BBA8C1702D}</em:id>
    <em:version>1.1</em:version>
    <em:creator>test</em:creator>
    <em:description>....</em:description>
    <em:name>test</em:name>
    <em:targetApplication>
      <Description>
        <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
        <em:minVersion>0.7</em:minVersion>
        <em:maxVersion>5</em:maxVersion>
      </Description>
    </em:targetApplication>
  </rdf:Description>
</rdf:RDF>

[install.js]
var sAppName    = "test";
var sChromeName = "test";
var sVersion    = "1.0.0.1";
var sDecoderLib = "components/npktest.dll";
var err = initInstall(sAppName, sChromeName, sVersion);
if (err==SUCCESS)
{
    var pluginsFolder = getFolder("Plugins");
    err=  addFile(sAppName, sDecoderLib, getFolder("Plugins"), "");
    if (err != 0)logComment("adding file "+PLUGIN_FILE+" failed. Error
code: " + "err");
    else
    {
      err =performInstall();
      if(err == 0)refreshPlugins();
    }
}
else  cancelInstall(err);

[components/.autoreg] = empty file, -rwxr-xr-x

[components/npktest.dll] works if copied manually

just doesn't install :(

Any hints what could be wrong ?


More information about the Project_owners mailing list