Add extraction steps for WinDivert and Android Platform Tools

Introduces extraction and installation logic for WinDivert and Android Platform Tools components in postInstall.ps1. Also updates log messages for consistency and clarity.
This commit is contained in:
Namhyeon, Go 2025-12-01 16:33:05 +09:00
parent 0be5bd031d
commit 3e82eeeb4b

View File

@ -557,11 +557,11 @@ try {
Download-File -Url $url -DestinationPath $WinDivertCompressed
}
else {
Write-Host "[*] windivert URL not available. Skipping download."
Write-Host "[*] WinDivert URL not available. Skipping download."
}
}
else {
Write-Host "[*] windivert component not selected. Skipping download."
Write-Host "[*] WinDivert component not selected. Skipping download."
}
# Android Platform Tools (component: android_platform_tools)
@ -571,11 +571,11 @@ try {
Download-File -Url $url -DestinationPath $AndroidPlatformToolsCompressed
}
else {
Write-Host "[*] android_platform_tools URL not available. Skipping download."
Write-Host "[*] Android Platform Tools URL not available. Skipping download."
}
}
else {
Write-Host "[*] android_platform_tools component not selected. Skipping download."
Write-Host "[*] Android Platform Tools component not selected. Skipping download."
}
}
catch {
@ -810,6 +810,36 @@ try {
else {
Write-Host "[*] nmap component not selected. Skipping Npcap/Nmap installation."
}
# windivert (component: windivert)
if (Test-ComponentSelected -Name "windivert") {
if (Test-Path $WinDivertCompressed) {
Extract-CompressedFile `
-CompressedPath $WinDivertCompressed `
-DestinationDirectory (Join-Path $TargetDir "windivert")
}
else {
Write-Host "[WARN] WinDivert archive not found. Skipping installation."
}
}
else {
Write-Host "[*] WinDivert component not selected. Skipping installation."
}
# Android Platform Tools (component: android_platform_tools)
if (Test-ComponentSelected -Name "android_platform_tools") {
if (Test-Path $WinDivertCompressed) {
Extract-CompressedFile `
-CompressedPath $AndroidPlatformToolsCompressed `
-DestinationDirectory (Join-Path $TargetDir "android_platform_tools")
}
else {
Write-Host "[WARN] Android Platform Tools archive not found. Skipping installation."
}
}
else {
Write-Host "[*] Android Platform Tools component not selected. Skipping installation."
}
}
catch {
Write-Host "[FATAL] Extraction/installation phase failed."