Skip to content

Commit ea785dc

Browse files
committed
simplify installer log
1 parent d3c672d commit ea785dc

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

ci/scripts/installNVDA.ps1

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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
87
try {
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"
2218
if (Test-Path -Path $installerCrashDumpPath){
2319
Write-Output "NVDA installer process crashed.`n" >> $env:GITHUB_STEP_SUMMARY
2420
$errorCode=1

0 commit comments

Comments
 (0)