Are there anywhere examples ?

"Stefan Frasch" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpinstall
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Hi !

I want to use xpinstall to install my plugin. But I use an native installer
on win32.

I have read that xpinstall can launch an native installer.

I zipped the native installer (*.exe) with my install.js to myplugin.zip. I
used winzip. Then I renamed myplugin.zip to myplugin.xpi.

Then I drag&droped the .xpi into Netscape 7, an installer window opened,
doing something an abort. When I look into install.log there is following
line:

Install **FAILED** with error -240  --  03/26/2004 16:52:35

Here is my install.js:

var NATIVE_INSTALLER = "setupNS.exe";
var SOFTWARE_NAME    ="myPlugin";
var PLID             = "@lalala.de/myplugin,version=1.0";
var VERSION = "1.0.0.6";

// error return codes need some memory
var err;


err = initInstall(SOFTWARE_NAME, PLID, VERSION);

if (err != 0)
{

err = file.execute("setupNS.exe", true);

// Must call performInstall to make it all happen...

err = getLastError();
if (!err)
   performInstall();
else
  cancelInstall(err);
}

Are there anywhere good examples for use native installer ?

Thanks ...

-stf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.