Skip to content

Commit

Permalink
Only enable maxmind enrichment if the directory exists
Browse files Browse the repository at this point in the history
  • Loading branch information
reuteras committed Jan 22, 2024
1 parent 87b63c7 commit 0f833e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup/wscommon.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ function Install-Wireshark {
Copy-Item "$SETUP_PATH\wireshark.exe" "$TEMP\wireshark.exe"
Start-Process -Wait "$TEMP\wireshark.exe" -ArgumentList "/S /desktopicon=yes /quicklaunchicon=yes"
New-Item -Path "$env:USERPROFILE\AppData\Roaming\Wireshark" -Force -Type Directory | Out-Null
Set-Content '"C:/enrichment/maxmind_current"' -Encoding Ascii -Path "$env:USERPROFILE\AppData\Roaming\Wireshark\maxmind_db_paths"
if (Test-Path "C:\enrichment\maxmind_current") {
Set-Content '"C:/enrichment/maxmind_current"' -Encoding Ascii -Path "$env:USERPROFILE\AppData\Roaming\Wireshark\maxmind_db_paths"
}
Add-ToUserPath "$env:ProgramFiles\Wireshark"
}

Expand Down

0 comments on commit 0f833e5

Please sign in to comment.