major update to override Write-Output func
This commit is contained in:
@@ -8,13 +8,13 @@ If (! (Test-Path "${Env:ProgramFiles}\4KDownload\4kvideodownloader\4kvideodownlo
|
||||
$INSTALLER = Download-File -URL $URL
|
||||
|
||||
## Install the app
|
||||
LogMsg "Installing 4K Video Downloader from ""${INSTALLER}"""
|
||||
Write-Output "Installing 4K Video Downloader 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 }
|
||||
}
|
||||
Else { LogMsg "4K Video Downloader is already installed!" }
|
||||
Else { Write-Output "4K Video Downloader is already installed!" }
|
||||
Reference in New Issue
Block a user