File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,23 +2,19 @@ $errorCode=0
22$nvdaLauncherFile = $ (Resolve-Path " $env: nvdaLauncherDir \nvda*.exe" )
33$nvdaInstallerLogDir = $ (Resolve-Path " .\testOutput\install" )
44$installerLogFilePath = " $nvdaInstallerLogDir \nvda_install_temp.log"
5- $installerLogFileCopyPath = " $nvdaInstallerLogDir \nvda.log"
65$installerCrashDumpPath = " $nvdaInstallerLogDir \nvda_crash.dmp"
76$installerProcess = Start-Process - FilePath " $nvdaLauncherFile " - ArgumentList " --install-silent --debug-logging --log-file $installerLogFilePath " - passthru
87try {
98 $installerProcess | Wait-Process - Timeout 180 - ErrorAction Stop
109 $errorCode = $installerProcess.ExitCode
11- Write-Output " NVDA installer completed."
12- Get-ChildItem $nvdaInstallerLogDir
1310} catch {
1411 Write-Output " NVDA installer process timed out.`n " >> $env: GITHUB_STEP_SUMMARY
1512 $errorCode = 1
1613}
1714# If the installer failed to exit the log file is still in use.
1815# We can't/shouldn't upload a file which is locked,
1916# as a work around create a copy of the log and upload that instead.
20- New-Item - ItemType File - Name $installerLogFileCopyPath
21- Copy-Item $installerLogFilePath $installerLogFileCopyPath
17+ Copy-Item $installerLogFilePath " nvda_install.log"
2218if (Test-Path - Path $installerCrashDumpPath ){
2319 Write-Output " NVDA installer process crashed.`n " >> $env: GITHUB_STEP_SUMMARY
2420 $errorCode = 1
You can’t perform that action at this time.
0 commit comments