Skip to content

Refactor WindowsGeneralDrivelution to inherit BaseDriverUpdater #283

Description

@JusterZhu

Summary

Refactor the Windows platform driver updater to inherit from BaseDriverUpdater, eliminating ~80% of duplicated pipeline code.

Changes

  • \WindowsGeneralDrivelution\ now inherits \BaseDriverUpdater\ instead of implementing \IGeneralDrivelution\ directly
  • Only \InstallCoreAsync()\ and platform-specific helpers retained
  • Windows permission check integrated as a custom pipeline step via \GetPipelineSteps()\
  • All retry, timeout, rollback, and event logic inherited from base class

Before / After

  • Before: ~550 lines (full pipeline, validation, backup, rollback, file parsing)
  • After: ~150 lines (InstallCoreAsync + INF parsing helpers)

Related

Part of the Drivelution refactoring (sub-task 3 of 9).

Closes #283

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions