Skip to content

[Network Packet Capture]: Implement conditional installation behaviour for the Network Packet Capture integration on Windows #18539

@tanja-milicic

Description

@tanja-milicic

Integration Name

Network Packet Capture [network_traffic]

Dataset Name

No response

Integration Version

1.34.2

Agent Version

9.3

OS Version and Architecture

Windows

User Goal

Currently, a toggle labeled “Never Install Npcap on Windows” prevents any installation attempts. Introduce a more flexible option that installs Npcap only if a compatible version is not already present, and skips installation when one is detected.

Implement conditional installation behaviour for the Network Packet Capture integration on Windows:

  • Detect if Npcap is installed.
  • If not installed, install the bundled/required Npcap version.
  • If installed, validate version and configuration (e.g., WinPcap API-compatible mode) and either use it as-is if compatible or present a prompt/actionable message to upgrade.
  • Avoid failing with a non-actionable exit code (e.g., exit 2 when already installed). Instead, surface a clear status and next steps.

Existing Features

There is a “Never Install Npcap on Windows” toggle - when enabled, the integration never attempts to install the bundled Npcap. If Npcap is missing, the integration fails to function. If a different Npcap version is present, the integration attempts to use it but may have limited or unsupported functionality.

What did you see?

An Error in the Network Packet Capture Integration because Npcap could not be installed with exit 2

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions