diff --git a/scripts/bootstrap.ps1 b/scripts/bootstrap.ps1 index d4343b7..0a3ac6f 100644 --- a/scripts/bootstrap.ps1 +++ b/scripts/bootstrap.ps1 @@ -72,4 +72,8 @@ if (-not (Test-Path "$TargetDir\.env") -and (Test-Path "$TargetDir\.env.template } Write-Host "[3/3] Launching scripts\install.bat..." -ForegroundColor Green -Start-Process -FilePath "$TargetDir\scripts\install.bat" -WorkingDirectory "$TargetDir\scripts" \ No newline at end of file +$InstallScript = "$TargetDir\scripts\install.bat" +if (-not (Test-Path $InstallScript)) { + throw "Cannot find $InstallScript after extraction!" +} +Start-Process -FilePath "cmd.exe" -ArgumentList "/c `"$InstallScript`"" -WorkingDirectory "$TargetDir\scripts" \ No newline at end of file