About register a ActiveX Component from Install.js
"bob70" <[email protected]> 17 Mar 2005 10:27:10 -0800
| Newsgroups | gmane.comp.mozilla.devel.xpinstall |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
Hello all.
I make a plugins for Netscape 7.0, but I use a activeX control and I
want install this too. But when I make a
File.windowsRegisterServer(xxx) that function return -208 "Invalid
Argument". I try to found the information about how is the
"windowsRegisterServer" arguments, and don't found any information
about this. Pleace if any people have any sample or something.
That is a short example of my install.js
...
err = addDirectory("", "1.0.0.1", "MyPlugins", pluginsFolder, "",
true);
logComment("addDirectory() returned: " + err);
var regComp = getFolder("Program") + "MyActiveX.dll";
err = File.windowsRegisterServer(regComp);
if (err == SUCCESS)
{
err = performInstall();
}
else
{
cancelInstall(err);
}