rvj wrote:

> To automatically create a shortcut for a XPI package , I had thought that
> just reading the Windows/NT registry would  be sufficient
> 
>  to determine the absolute location of Mozilla.exe  ...but obviously several
> versions of Mozilla may be installed
> 
> Assuming that an xpi package is installed via Mozilla's open file support,
> 
> I assume that my xpi script  needs at runtime to determine the absolute
> location of the 'parent' installation Mozilla exe
> 
> What script function allows this?


The objects returned from getFolder() will give you the path when used in a
string context (such as the arguments to the shortcut command).
getFolder("Program") is probably what you want.

Note this is the directory, not the full application name. You could always
guess "mozilla.exe", but then it wouldn't work for Netscape 6 folks. As we
work on making XPInstall embeddable we obviously have to figure something
out for that, I don't have a good answer for that right now.

I guess you could look for "Netscape" in the getFolder("Program") path and
hope the user stuck it in the default location, but that's not great. :-(

-Dan Veditz


Reply via email to