File tree Expand file tree Collapse file tree 1 file changed +6
-19
lines changed Expand file tree Collapse file tree 1 file changed +6
-19
lines changed Original file line number Diff line number Diff line change @@ -26,25 +26,12 @@ jobs:
2626 - name : Install MetaTrader5
2727 shell : pwsh
2828 run : |
29- $installDir = "$env:GITHUB_WORKSPACE\MT5Portable"
30-
31- # Verify and clean installation directory
32- if (Test-Path $installDir) {
33- Remove-Item -Recurse -Force $installDir
34- }
35-
36- # Run installer with explicit paths
37- $process = Start-Process "$env:GITHUB_WORKSPACE\mt5setup.exe" `
38- -ArgumentList @(
39- "/S",
40- "/portable=`"$installDir`"",
41- "/skipupdate"
42- ) -PassThru -NoNewWindow
43-
44- # Wait for installation with timeout
45- if (-not $process.WaitForExit(300000)) {
46- Write-Error "Installation timed out after 5 minutes"
47- exit 1
29+ $process = Start-Process -FilePath ".\mt5setup.exe" -ArgumentList "/auto", "/portable" -PassThru
30+ $process.WaitForExit(300000)
31+ if (-not $process.HasExited) {
32+ Write-Host "MT5 installer stuck, killing..."
33+ Stop-Process -Id $process.Id -Force
34+ exit 1
4835 }
4936
5037 # Verify installation
You can’t perform that action at this time.
0 commit comments