-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-tsduck.ps1
44 lines (39 loc) · 1.28 KB
/
install-tsduck.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#-----------------------------------------------------------------------------
#
# Copyright (c) 2022, Thierry Lelegard
# BSD-2-Clause license, see LICENSE.txt file
#
# Download and install TSDuck for Windows.
# See parameters documentation in install-common.ps1.
#
# Additional parameters:
#
# -All
# Install all options. By default, only the tools, plugins and
# documentation are installed. In case of upgrade over an existing
# installation, the default is to upgrade the same options as in the
# previous installation.
#
#-----------------------------------------------------------------------------
[CmdletBinding(SupportsShouldProcess=$true)]
param(
[switch]$All = $false,
[string]$Destination = "",
[switch]$ForceDownload = $false,
[switch]$GitHubActions = $false,
[switch]$NoInstall = $false,
[switch]$NoPause = $false
)
Write-Output "==== TSDuck download and installation procedure"
. "$PSScriptRoot\install-common.ps1"
# Installer options.
$ArgList = @("/S")
if ($All) {
$ArgList += "/all=true"
}
Install-Standard-Exe "https://github.com/tsduck/tsduck/releases/latest" "*/TSDuck-Win64-*.exe" "" $ArgList
Propagate-Environment "TSDUCK"
Propagate-Environment "Path"
Propagate-Environment "PYTHONPATH"
Propagate-Environment "CLASSPATH"
Exit-Script