From b1721544eae616904643074e88a4695468239321 Mon Sep 17 00:00:00 2001 From: dyoder Date: Thu, 27 May 2021 17:43:04 -0400 Subject: [PATCH] add log message if previous install exists --- Install-4KVideoDownloader.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Install-4KVideoDownloader.ps1 b/Install-4KVideoDownloader.ps1 index ac9867b..a967e53 100644 --- a/Install-4KVideoDownloader.ps1 +++ b/Install-4KVideoDownloader.ps1 @@ -15,4 +15,5 @@ If (! (Test-Path "${Env:ProgramFiles}\4KDownload\4kvideodownloader\4kvideodownlo LogMsg "Deleting downloaded installer from ""${INSTALLER}""" Try { Remove-Item -Path $INSTALLER -Force -ErrorAction SilentlyContinue } Catch { LogErr $_.Exception.Message } -} \ No newline at end of file +} +Else { LogMsg "4K Video Downloader is already installed!" } \ No newline at end of file