Method for automatically updating a computer registry
First Claim
1. In a computer system, a method for automatically registering resources required for an application program module to execute, comprising the steps of:
- searching through a predetermined folder for an application file or a dynamic link library file;
upon detecting an application file or a dynamic link library file, opening a resource fork in association with the file and determining whether there is a self-registration resource in the resource fork, and if there is a self-registration resource in the resource fork, then registering the self-registration resource in a registry; and
determining whether there is an Object Linking and Embedding (OLE) Type Library (OTLB) resource in the resource fork, and if there is an OTLB resource in the resource fork, then registering the OTLB resource.
2 Assignments
0 Petitions
Accused Products
Abstract
In a computer system, a method for automatically registering resources required for an application program module to execute. After the application program module is booted, a registration cache is examined to determine its status. The registration cache is stored in association with the application program module and it indicates whether a registry on the computer system needs to be updated, such as after the user has moved files or renamed files such that registry keys in the registry may no longer be valid. If the registration cache indicates that the registry needs to be updated, then a search is made through a predetermined directory, such as the application program module folder. The search is looking for an application file or a dynamic link library file. Upon detecting an application file or a dynamic link library file, then a resource fork in association with the file is opened and it is determined whether there is a self-registration resource in the resource fork. If so, then the self-registration resource is registered by initiating a self-registration dynamic link library. It is also determined whether there is an Object Linking and Embedding (OLE) Type Library (OTLB) resource in the resource fork and if so, then registering the OTLB resource by initiating an OLE call.
-
Citations
13 Claims
-
1. In a computer system, a method for automatically registering resources required for an application program module to execute, comprising the steps of:
-
searching through a predetermined folder for an application file or a dynamic link library file;
upon detecting an application file or a dynamic link library file, opening a resource fork in association with the file and determining whether there is a self-registration resource in the resource fork, and if there is a self-registration resource in the resource fork, then registering the self-registration resource in a registry; and
determining whether there is an Object Linking and Embedding (OLE) Type Library (OTLB) resource in the resource fork, and if there is an OTLB resource in the resource fork, then registering the OTLB resource. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
determining that a trigger has been initiated; and
upon determining that a trigger has been initiated, performing the searching step.
-
-
3. The method of claim 2, wherein the step of registering the self-registration resource comprises the step of initiating a dynamic link library.
-
4. The method of claim 3, wherein the dynamic link library is selfreg.dll.
-
5. The method of claim 1, wherein the step of registering the OTLB resource comprises initiating an OLE call.
-
6. The method of claim 5, wherein the OLE call is RegisterTypeLib.
-
7. The method of claim 6, further comprising the steps of:
determining whether a trigger has been initiated and, if a trigger has been initiated, then performing the searching step.
-
8. The method of claim 7, wherein the method is initiated when the application program module is booted.
-
9. A computer-readable medium comprising computer-readable instructions, which when executed, perform the steps of:
-
searching through a predetermined folder for an application file or a dynamic link library file;
upon detecting an application file or a dynamic link library file, opening a resource fork in association with the file and determining whether there is an Object Linking and Embedding (OLE) Type Library (OTLB) self-registration resource in the resource fork; and
if there is an OTLB self-registration resource in the resource fork, then registering the OTLB self-registration resource in a registry by initiating an OLE call, wherein the OLE call is RegisterTypeLib.
-
-
10. In a computer system, a method for automatically registering resources required for an application program module to execute, comprising the steps of:
-
booting the application program module;
determining the status of a registration cache stored in association with the application program module to determine whether a registry on the computer system needs to be updated;
if a registry on the computer system needs to be updated, then searching through a predetermined directory for an application file or a dynamic link library file;
upon detecting an application file or a dynamic link library file, opening a resource fork in association with the file and determining whether there is a self-registration resource in the resource fork, and if there is a self-registration resource in the resource fork, then registering the self-registration resource;
determining whether there is an Object Linking and Embedding (OLE) Type Library (OTLB) resource in the resource fork; and
if there is an OTLB resource in the resource fork, then registering the OTLB resource. - View Dependent Claims (11, 12, 13)
the step of registering the self-registration resource comprises the step of initiating a dynamic link library; and
the step of registering the OTLB resource comprises the step of initiating an OLE call.
-
-
13. The method of claim 12, further comprising the step of searching the application program module folder until all application files or dynamic link library files have been detected.
Specification