hello,

i have downloaded the whole mozilla source code .I want to try out xpinstall
from the command line. So I compiled the code present in my
xpinstall/wizard/windows/test/ directory. This created an EXE for me called
TestXPI.exe I then change the path to the /mozilla/dist/win32_d.obj/bin
folder & run this EXE. This gives me a message saying:

Type Manifest File:
E:\mozsource\mozilla\dist\WIN32_D.OBJ\bin\components\xpti.dat
nsNativeComponentLoader: autoregistering begins.
nsNativeComponentLoader: autoregistering succeeded
nNCL: registering deferred (0)
File not found: E:\cmonkey\mozilla\dist\WIN32_D.OBJ\bin\test1.xpi
File not found: E:\cmonkey\mozilla\dist\WIN32_D.OBJ\bin\test1.xpi
CanUnload_enumerate: skipping native
0 : TestXPI.exe done

exit code: 0

** Success! **

Since my test1.xpi is not present in the path
E:\cmonkey\mozilla\dist\WIN32_D.OBJ\bin\test1.xpi, I changed the path
E:\cmonkey\mozilla\dist\WIN32_D.OBJ\bin\test1.xpi & put the path of the
directory where my test1.xpi is located & again compiled & ran the
Testxpi.exe. This gave the following error:

###!!! ASSERTION: You can't dereference a NULL nsCOMPtr with operator->().:
'mRa
wPtr != 0', file ..\..\dist\include\nsCOMPtr.h, line 652
###!!! Break: at file ..\..\dist\include\nsCOMPtr.h, line 652

Can anyone help me as to why this error is encountered?

thanx

"Sean Su" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Yes there is.  A good example are the current native mozilla installers.
> They use xpinstall as their engine to do the actual file install process.
> They do not depend on the mozilla browser to already be installed.
>
> The xpcom.xpi archive (that is part of the mozilla installer) contains the
> bare essentials required to run xpinstall.  The current format of the
> standalone xpinstall is in a library form, not an .exe.  However, that
> should be easy to do as well.
>
> The following link contains the source for a windows executable that uses
> the xpinstall engine to perform the file installation routines (copy,
> rename, move, delete, etc...):
>
>   http://lxr.mozilla.org/seamonkey/source/xpinstall/wizard/windows/test/
>
> This test app can only be run from within the .../bin folder because it
> requires xpinstall.  You should be able to easily adapt it to work with
the
> files in xpcom.xpi.
>
> hope this helps...
>
> [EMAIL PROTECTED] wrote:
>
> > I need to know if there is a way to run xpi's without the browser
> > running (like from the command line)?  What we want is a method that we
> > can package them up, and when it's promptedm, it runs the xpi to take
> > over and properly install it.  All of this would have to be done without
> > assuming there was ever a web browser currently running.
>
>



Reply via email to