Skip to content

Commit e1ed0e9

Browse files
committed
different
1 parent 0ce4869 commit e1ed0e9

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

.github/workflows/test-metatrader5-integration.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)