Implement default installation directory handling in installer script

This commit is contained in:
agessaman 2025-10-17 20:48:28 -07:00
parent f1b18afb68
commit 6fe093b40e

View file

@ -41,6 +41,11 @@ function Start-Installation {
$defaultInstallDir = Join-Path $env:USERPROFILE ".meshcore-packet-capture"
$script:InstallDir = Read-Host "Installation directory" $defaultInstallDir
# Use default if empty
if (-not $script:InstallDir) {
$script:InstallDir = $defaultInstallDir
}
Write-Host "INFO: Installation directory: $InstallDir" -ForegroundColor Blue
# Check if directory exists