Files
management-scripts/Install-VLC.ps1
T

13 lines
527 B
PowerShell
Raw Normal View History

2020-10-22 14:01:35 -04:00
## Make sure we have an administrative token
2020-10-19 11:24:07 -04:00
If ( IsAdmin )
{
## Get the correct URL
2020-10-22 14:01:35 -04:00
If ( Is64bit) { $URL = 'https://get.videolan.org/vlc/3.0.11/win64/vlc-3.0.11-win64.exe' }
Else { $URL = 'https://ftp.osuosl.org/pub/videolan/vlc/3.0.11/win32/vlc-3.0.11-win32.exe' }
2020-10-19 11:24:07 -04:00
## Download file and get local file name
$Installer = Download-File $URL
2020-10-22 14:01:35 -04:00
If ( $Installer ) { Install-Program -Path "${Installer}" -Arguments "/S" -Delete }
2020-10-19 11:24:07 -04:00
}
2023-10-05 13:11:38 -04:00
Else { Write-Output "Must be an administrator to install VLC" }