tells the WireShark Installer (Wireshark-4.6.4-x64.exe) to run silently (using all the defaults), without this switch the installer runs interactively and expects the user to step through the install wizard (as it doesn't know if you want to install it using non-default settings)
I'm assuming you are running this as a SYSTEM install (so the Wireshark Installer will be hidden from the user, it's running in the SYSTEM context awaiting input)
Let me give you an analogy:
Without the switch, It's like me asking you to walk,
your response "where do you want me to walk to?"
With the switch, it's like me asking to you to walk to the end of your road and back.
you don't need to respond as you know where you are going.
No, there are ways you can show the dialogs (i.e the Wireshark Install Wizard) to the user, but why wouldn't you want to install the app silently?
Unless you are wanting to install the winpcap driver (from nmap.org) which is not allowed to be installed silently due to a WireShark licensing restriction...
But there are ways around this too (N.B. This example is for PSADT 3.8.4, so will need updating for v4.1.8 if you intend to use): Wireshark Install and Uninstall (PowerShell) - SILENT INSTALL HQ
you are right, that's what i want, to be honest i am installing Wireshark and npcap in the same packaging.
I know that npcap can not be installed silently unless we have license (which we don't have), so the only way to install npcap needed to be with user interaction before Wireshark install itself silently.
when npcap starts installing i got the same error: "awaiting completion..."
So i can install wireshark silently without any problem but still have the npcap issue
or resort to use ServiceUI.exe to bring the Setup wizard dialogs into the Users context - There are Security risks in doing this though, so I would not recommend
I have just successfully installed this silently after I had installed npcap, using your two (modified) lines - I have included the path to the installers placed in the Files folder in PSADT:
Did you run it via intune or only via PsEXEC ?
If i run it via SYSTEM (PsEXEC) it works good, but then when i create a package to import to intune it keeps showing the same "error"... "Awaiting completion".
As you said at least to install npcap we might need to use de ServiceUI, but i was trying to avaoid that