If you use Nmap for network discovery, Npcap is the modern packet capture engine. Ensure Nmap points to: C:\Windows\System32\Npcap\ for its DLLs.
After clicking "Install" for Wireshark, the installer will automatically launch the installer in a new window. This is a crucial sub-step: wireshark download npcap
You can perform a silent/unattended installation of Npcap using command-line switches: If you use Nmap for network discovery, Npcap