# Tiny launcher — starts digibyted.exe detached with the correct config. # Used by the fix-pass in this session; setup-local.ps1 has the same # logic inline for first-run installs. param( [string]$InstallDir = "D:\Program Files\DigiByte" ) $exe = Join-Path $InstallDir "daemon\digibyted.exe" $conf = Join-Path $InstallDir "digibyte.conf" if (-not (Test-Path $exe)) { throw "not found: $exe" } if (-not (Test-Path $conf)) { throw "not found: $conf" } $proc = Start-Process -FilePath $exe -ArgumentList "-conf=`"$conf`"" -WindowStyle Hidden -PassThru Start-Sleep -Seconds 4 $still = Get-Process -Id $proc.Id -ErrorAction SilentlyContinue if ($still) { Write-Host "Started digibyted.exe (PID $($proc.Id))." } else { throw "digibyted.exe exited immediately (PID $($proc.Id) is gone). Check the debug log tail." }