Closed Bug 168052 Opened 22 years ago Closed 21 years ago

GRE enable regxpcom.exe...

Categories

(Core :: XPCOM, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: chak, Assigned: dougt)

References

Details

(Keywords: topembed+)

Currently regxpcom registers components only in the "components" directory 
relative to where it's run from.

We need the ability for regxpcom to register components in a specified GRE 
directory also.
what is wrong with what it does now?

usage: regxpcom directory-to-register
       regxpcom -u directory-to-unregister

what exactly does the -u option do? Does it delete both components.reg and 
xpti.dat? What does it do if the .xpt files are zipped up?
>what exactly does the -u option do? 

-u calls AutoUnregister for give directory or component. 
   This calls trickes down to calling UnregisterSelf on 
   each of the give components.  AutoUnregister also
   removes all references to the given components from 
   the compreg.dat file.

>Does it delete both components.reg and xpti.dat? 
    No.  

> What does it do if the .xpt files are zipped up?
    Currently it does not touch xpt files, but this is a bug.  

Since you can currently specify just one components dir to register, that can be
used to rergister either just the applicaction specific components dir or the
MRE's components dir - not both.

Or am i still missing something?
do you want to be able to specify multiple directories?  
I guess being able to specify multiple component dirs will probably solve the
issue of autoreg when running in a GRE based env. 

Doug : Do you think that's the way to go or are there any other approaches you'd
prefer/reccommend?
Blocks: gre
chak, are you working on this?  If not, please reassign it to me.
->Doug
Assignee: chak → dougt
Keywords: nsbeta1, topembed
Depends on: 183075
EDT triage: talked to Doug, and it seems like he needs to clean up regxpcom
before embedding clients can make effective/complete use of it.  Plussing
topembed nomination.

Doug, can you please describe the scenarios under which the current
implementation is insufficient for embedding customers which we plan on
addressing in this bug?
Keywords: topembedtopembed+
the fix in bug 183075 gives you many more options.  

Usage: regxpcom [options] [file-or-directory]

Options:

-x path

Specifies the location of a directory containing the
xpcom library which will be used when registering new
component libraries. This path will also be added to
the "load library" path. If not specified, the
current working directory will be used.

-c path

Specifies the location of the compreg.dat file. If
not specifed, the compreg.dat file will be in its
default location.

-d path

Specifies the location of the xpti.dat file. If not
specifed, the xpti.dat file will be in its default
location.

-a

Option to register all files in the default component
directories. This is the default behavoir if regxpcom
is called without any arguments.

-h

Displays this help screen.

-u

Option to uninstall the files-or-directory instead of
registering them.

-q

Quiets some of the output of regxpcom

Marking as fixed.  Chak, please verify that with these options, the scenarios
you had in mind are addressed.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
dougt: so regxpcom will not automatically find the GRE... you need to specify -x
PATH_TO_GRE to get it working?
regxpcom will assume the GRE is in the CWD if no GRE location is specified.
Component: XPCOM Registry → XPCOM
QA Contact: doug.turner → xpcom
You need to log in before you can comment on or make changes to this bug.