TerminalService.ps1
$ScriptDir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent . ($ScriptDir + "./Global.ps1") $ProductName = "logeto-terminal-service" $ServicePackageName = "Logeto.UWP.Service" <# Return Json file for Terminal Service, if there is no newer version null is returned. #> function Get-LogetoTerminalServiceUpdateInfo { $scope = Get-LogetoScope $serviceVersion = Get-LogetoExeVersion (Get-LogetoServicePath $ServicePackageName) return Get-LogetoUpdateInfo -Product $ProductName -Scope $scope -Version $serviceVersion } <# Install logeto-terminal-service product #> function Install-LogetoTerminalService { Param( [parameter(Mandatory=$true)] $UpdateInfo, [parameter(Mandatory=$false)] $ProductName = 'logeto-terminal-service' ) Get-LogetoProduct $UpdateInfo $ProductName InstallService $LogetoFolder + $DownloadFolderPath + $ProductName } |