From cfdf5bc59bb07ae4b49ff7b8ed46b00b31f11f8a Mon Sep 17 00:00:00 2001 From: Dima Iholkin <38999978+dima-iholkin@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:05:31 +0300 Subject: [PATCH] Try a fix. --- src/Installer/_scripts/_helpers.ps1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Installer/_scripts/_helpers.ps1 b/src/Installer/_scripts/_helpers.ps1 index 7166022..ac889da 100644 --- a/src/Installer/_scripts/_helpers.ps1 +++ b/src/Installer/_scripts/_helpers.ps1 @@ -257,10 +257,13 @@ function RunVS2022 { $wshell = New-Object -ComObject wscript.shell # Wait until activating the target process succeeds. # Note: You may want to implement a timeout here. - Start-Sleep -Seconds 30 + Start-Sleep -Seconds 40 Write-Output "Sending enter to the VS 2022 window" $wshell.SendKeys('{ENTER}') - Start-Sleep -Seconds 20 + Start-Sleep -Seconds 10 + Write-Output "Sending enter to the VS 2022 window" + $wshell.SendKeys('{ENTER}') + Start-Sleep -Seconds 10 # Write-Output "Sending enter to the VS 2022 window" # $wshell.SendKeys('{ENTER}') # Start-Sleep -Seconds 10