Re: xpistub

GuruJ <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpinstall
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Hi Andrew,

Those links helped me get my head around the DLL, thanks!

After a lot of head-scratching, I eventually figured out that the 
easiest way to get a ready-made xpistub install is to install the GRE 
separately.  Once the GRE is on the system, getting the DLL to work was 
fairly straightforward, although the installer I'm using (NSIS) had a 
fairly 'unique' (read: bizarre) way of calling DLL functions which gave 
me some strife.

Thanks again,

-- GuruJ.

Andrew Schultz wrote:
> GuruJ wrote:
> 
>> Hi all,
>>
>> I'm trying to use the functions in xpistub.dll (XPI_Init, XPI_Install 
>> and XPI_Exit) to install XPI packages without launching Mozilla.
>>
>> Ideally, I want to use this to write my own custom Mozilla installer, 
>> but any experiences would be useful.
>>
>> In particular, I need to know:
>> * Is there any more documentation for using the dll than that found in 
>> LXR?
> 
> 
> not that I know of.
> 
>> * Should all the associated DLLs be registered with Windows first?
>> * Does anyone have sample code that works?  I'd prefer something that 
>> isn't C or C++ if possible (Perl?), so that I get a better feel for 
>> how to interface with the code using non-native languages.
> 
> 
> The examples I know of are:
> 1. the Mozilla installer wizards (mozilla/xpinstall/wizard)
> 2. the standalone installer (not yet implemented, there is a working 
> patch).  http://bugzilla.mozilla.org/show_bug.cgi?id=77365
> 
> The Windows installer is C, the Linux installer is C++.  The standalone 
> installer is C++ and insanely simple (it just calls the three 
> functions).  Sorry I can't help you with Perl.
>
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.