From 27680382fab9f0a24fe0c58ffadc2cd5636d2a0b Mon Sep 17 00:00:00 2001 From: lamtruong28 Date: Sat, 14 Nov 2026 22:28:31 +0700 Subject: [PATCH] Fix can't auto run install.bat when setup.bat done --- scripts/bootstrap.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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