John Nason wrote:

This line in the "Weblock Installation Script"
// ? have to register component here or with regxpcom?

That line should be removed. :-)



I was about to go with what I think might be a third "dynamic" option for
anyone interested... nsIComponentRegistrar is scriptable and you could
invoke autoRegister from your install script. I have not verified this yet
but I think it might be cleaner than running regxpcom via file.execute (btw,
I thought you could only execute files within your xpi?).

the xpinstall javascript context does not have access to xpconnect.


In case you're interested the silly mistake I was making was:
addFile("myFile.dll", "", getFolder("Components"), "")
instead of:
addFile("myFile.dll", "myFile.dll", getFolder("Components"), "")
I thought the xpiSrc param was a path to where it lived in the xpi, not the
root relative path including the file name. Oops!

Maybe File.exec is the wrong object to be using. Take a look at the xpinstall references. As I recall, there is an class that you can use to do exactly what you need.


Doug Turner
[EMAIL PROTECTED]

_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to