7 runs-on: windows-latest
13 uses: msys2/setup-msys2@v2
19 uses: actions/checkout@v4
20 - name: Install dependencies
21 run: tools/msys2-setup.sh --install-all --noconfirm
24 mkdir build && cd build
28 ninja wireshark_nsis_prep
30 - name: Upload artifacts
31 uses: actions/upload-artifact@v4
34 path: build/packaging/nsis/wireshark-*-x64.exe
37 runs-on: windows-latest
40 - name: Download installer
41 uses: actions/download-artifact@v4
46 working-directory: downloads
48 $ErrorActionPreference = 'Stop'
49 $installer = Get-ChildItem -Path . -Filter "wireshark-*-x64.exe" -File | Select-Object -First 1
50 if ($null -eq $installer) {
51 Write-Error "Installer not found in downloads directory."
54 Start-Process -FilePath $installer.FullName -ArgumentList '/S', '/D=C:\Wireshark' -Wait -NoNewWindow
56 Write-Error "Wireshark installation failed."
62 $ErrorActionPreference = 'Stop'
63 if (Test-Path "C:\Wireshark\tshark.exe") {
64 $versionOutput = & "C:\Wireshark\tshark.exe" --version
65 if ($LASTEXITCODE -ne 0) {
66 Write-Error "Failed to retrieve TShark version."
69 Write-Output $versionOutput
71 Write-Error "TShark executable not found at C:\Wireshark\tshark.exe."