Skip to content

npcap: when winpcap installed then winpcap_mode cmdline param is not respected #717

@narspt

Description

@narspt

When Npcap installer finds Winpcap installed on system then it forces compatible mode checkbox to unchecked state, thus not respecting and completely ignoring /winpcap_mode command line param.

I did check old installer script (as the new one is not available on the repo anymore?) and despite I'm not familiar with nsis, I really guess the middle line below does just that:

	WriteINIStr "$PLUGINSDIR\options.ini" "Field 8" "Text" "Npcap detected you have installed WinPcap, in order to Install Npcap \r\nin WinPcap API-compatible Mode, WinPcap will be uninstalled first."
	WriteINIStr "$PLUGINSDIR\options.ini" "Field 7" "State" 0
	WriteINIStr "$PLUGINSDIR\options.ini" "Field 7" "Text" "Install Npcap in WinPcap API-compatible Mode (WinPcap will be uninstalled)"

Now that compatible mode is off by default on Npcap, could you please consider removing that line and allowing it to respect the command line param?

Or... if you really want to keep the current behavior for some reason, could you please add some other param to allow forcing/overriding it? But honestly I don't see why this would be required, if a command line param is set to specifically install with compatible mode enabled then that is desired/needed and I guess it should be respected, incl. uninstall Winpcap if present.

Btw, I did also notice that the documented 'enforced' value for params don't work at all, despite there is code to make them work they are "filtered" on the getInstallOptions function... not sure if this was some intended change (and documentation is outdated in that case) or a bug?

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