The GPLv2 explains:
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
So you can distribute the GPLv2-covered software alongside your proprietary software. The GPL only applies to the covered software, not to the entirety of the software that you distribute – iff the two are separable. Your proprietary software will then not be a derived work in the sense of copyright law.
For the GPL-covered part, you must comply with the GPL. In particular:
- You must provide the source code or a written offer for the source code of the GPL-covered software. Such an offer must be open to anyone, not just for your customers.
- Your installer should announce that it contains or installs GPL-covered parts, and should give the user a summary of their rights and how to view the license. However, it is not necessary that the GPL is accepted before installation.
- You must not add any restrictions to the GPL-covered parts. E.g. you must not prevent someone from copying these parts. You must not require acceptance of any EULA prior to offering access to the GPL-covered parts.
- In the spirit of the GPL, you should not prevent modifications to the Wireshark software that you installed, e.g. by requiring an exact version or even by checksumming the installation.
It is important to get GPLv2 compliance right:
You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License.
As written, your right to distribute Wireshark is terminated if you violate the license for any reason, and fixing the violations will not necessarily reinstate the license. If your business depends on Wireshark, consider checking your compliance effort with an IP lawyer. On the other hand, many GPLv2 licensors have no interest in a strict enforcement of this clause and will not consider your license terminated if you show a good faith effort to comply and fix any violations.
See also: Kuhn, Williamson, Sandler (2008): A Practical Guide to GPL Compliance. Software Freedom Law Center.