Dynamic Link Library Repair via Registry Path Mapping

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing software systems lack effective methods to manage and repair missing dynamic link library (DLL) files, leading to program crashes and user confusion regarding DLL file loss and installation paths.

Innovation Solution

A method and apparatus for repairing DLL files in a Windows operating system that reads the import section of an executable file, determines lost DLL files using a pre-established correspondence between DLL files and saved paths, notifies the user, and automatically reinstalls the DLL files using an installation package, reducing user intervention and improving efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a user manually downloads and installs a DLL file, then the DLL file can be repaired, but the user requires high knowledge of save paths and installation procedures

Engineering Contradiction:
ImproveDLL file repair success rateVSAvoidUser operation complexity
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The system automatically detects missing DLL files by reading the import section of executable files, queries the Windows registry for correct save paths, downloads the required DLL files, and installs them to the appropriate locations without user intervention. This self-service mechanism resolves the contradiction by making the repair process reliable while eliminating the need for user knowledge of save paths and installation procedures.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system performs preliminary actions by pre-establishing the correspondence between DLL files and their save paths through Windows registry queries before the actual installation. The import section of executable files is read in advance to identify required DLL files, and their correct locations are determined beforehand, ensuring reliable installation without requiring user input during the repair process.

Inventive Principle:
Principle #10Preliminary action

2Ease of operation

If the system automatically detects and reinstalls DLL files, then user intervention is reduced, but the system must accurately determine lost DLL files and their save paths

Engineering Contradiction:
ImproveUser intervention requirementVSAvoidDLL file loss detection accuracy
Core Design Contradiction:
Ease of operationVSDifficulty of detecting and measuring

Solution Approach 1:

The Windows registry serves as an intermediary that stores the correspondence between DLL files and their save paths. The system queries the registry to obtain accurate save path information for missing DLL files, ensuring reliable detection and installation. This intermediary mechanism enables automatic detection with high accuracy while maintaining ease of operation.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system reads the import section of executable files to obtain feedback information about required DLL files, then uses this information to query the Windows registry for save paths, and finally verifies whether the DLL files exist at those locations. This feedback loop ensures accurate detection of lost DLL files while enabling automatic repair with minimal user intervention.

Inventive Principle:
Principle #23Feedback

3Ease of manufacture

If DLL files are manually installed by users, then installation can be completed, but the installation path is often incorrect leading to repair failure

Engineering Contradiction:
ImproveInstallation process completionVSAvoidInstallation correctness
Core Design Contradiction:
Ease of manufactureVSReliability

Solution Approach 1:

The system performs preliminary queries to the Windows registry to determine the correct save paths for DLL files before performing the installation. By obtaining the authoritative save path information from the registry in advance, the system ensures that DLL files are installed to the correct locations, eliminating the path selection errors that occur in manual installation scenarios.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The Windows registry acts as an intermediary that provides the correct save path information for DLL file installation. By using the registry as the source of truth for installation paths, the system ensures installation correctness without requiring user input, thereby resolving the contradiction between ease of installation and installation reliability.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentEP3129883B1Method and apparatus for repairing dynamic link library file
Publication Date: 2019.01.02 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • EP3129883B1 patent drawingFigure 1~2
  • EP3129883B1 patent drawingFigure 3
  • EP3129883B1 patent drawingFigure 4~5

AI summary

A method for repairing a dynamic link library (DLL) file includes: reading an import section in an executable file; determining, according to DLL file information recorded in the import section and a pre-established correspondence between a DLL file and a save path, that a DLL file is lost; and notifying, when an instruction for running the executable file is received, that the DLL file is lost, and calling an installation package of the DLL file to repair the DLL file. The apparatus includes: a reading module, a determining module and a repairing module.