From 119d877d40e1f5a560af591f4dd1e3de654c0c5b Mon Sep 17 00:00:00 2001 From: dyoder Date: Thu, 27 May 2021 17:21:33 -0400 Subject: [PATCH] add script --- Install-4KVideoDownloader.ps1 | 16 ++++++++++++++++ rmm/Install-4KVideoDownloader.ps1 | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 Install-4KVideoDownloader.ps1 create mode 100644 rmm/Install-4KVideoDownloader.ps1 diff --git a/Install-4KVideoDownloader.ps1 b/Install-4KVideoDownloader.ps1 new file mode 100644 index 0000000..b0d4bf1 --- /dev/null +++ b/Install-4KVideoDownloader.ps1 @@ -0,0 +1,16 @@ + + +## Specify the URL to download 4K Video Downloader from +$URL = 'https://dl.4kdownload.com/app/4kvideodownloader_4.16.0_x64.msi' + +## Install Adobe Connect +If ( IsURLValid $URL ) { + LogMsg "Downloading installer from ${URL}" + $INSTALLER = Download-File -URL $URL + Try { Start-Process "msiexec.exe" -ArgumentList "/i ${INSTALLER} /qn /norestart" -Wait } + Catch { LogErr $_.Exception.Message } + LogMsg "Deleting downloaded installer from ""${INSTALLER}""" + Try { Remove-Item -Path $INSTALLER -Force -ErrorAction SilentlyContinue } + Catch { LogErr $_.Exception.Message } +} +Else { LogMsg "URL is not valid: ${URL}" } \ No newline at end of file diff --git a/rmm/Install-4KVideoDownloader.ps1 b/rmm/Install-4KVideoDownloader.ps1 new file mode 100644 index 0000000..1f149e2 --- /dev/null +++ b/rmm/Install-4KVideoDownloader.ps1 @@ -0,0 +1,2 @@ +. $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1'))) +Run-Script -LivePSScript Install-4KVideoDownloader \ No newline at end of file