diff --git a/Start-Windows10UpdateAssistant.ps1 b/Start-Windows10UpdateAssistant.ps1 index 77ed643..35574d5 100644 --- a/Start-Windows10UpdateAssistant.ps1 +++ b/Start-Windows10UpdateAssistant.ps1 @@ -34,11 +34,7 @@ If ( IsWindowsVersion -ge "10.0" ) { If ( Test-Path "${DOWNLOADS}\${FILENAME}" ) { Write-Output "Launching installer: ${DOWNLOADS}\${FILENAME}" - Try { Start-Process -FilePath "${DOWNLOADS}\${FILENAME}" -Wait } - Catch { Write-Output $_.Exception.Message } - - Write-Output "Deleting installer: ${DOWNLOADS}\${FILENAME}" - Try { Remove-Item "${DOWNLOADS}\${FILENAME}" } + Try { Start-Process -FilePath "${DOWNLOADS}\${FILENAME}" } Catch { Write-Output $_.Exception.Message } } Else { Write-Output "${DOWNLOADS}\${FILENAME} does not exist" }