major update to override Write-Output func

This commit is contained in:
2023-10-05 13:11:38 -04:00
parent 31a06a9206
commit bbb4884818
52 changed files with 377 additions and 378 deletions
+2 -2
View File
@@ -5,11 +5,11 @@ $URL = 'https://specsintact.ksc.nasa.gov/Software/downloads/SpecsIntact.msi'
$INSTALLER = Download-File -URL $URL
## Install the app
LogMsg "Installing latest version of SpecsIntact from ""${INSTALLER}"""
Write-Output "Installing latest version of SpecsIntact from ""${INSTALLER}"""
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${INSTALLER} /qn /norestart" -Wait }
Catch { LogErr $_.Exception.Message }
## Delete the installer
LogMsg "Deleting downloaded installer from ""${INSTALLER}"""
Write-Output "Deleting downloaded installer from ""${INSTALLER}"""
Try { Remove-Item -Path $INSTALLER -Force -ErrorAction SilentlyContinue }
Catch { LogErr $_.Exception.Message }