Unattended TPS installation on multiple computers using PowerShell remoting
Installation scenario
This page describes the unattended installation using PowerShell remoting for the installation of TurboPlayer Service on one or more remote computers when all configuration parameters are known in advance.
The Pre-installation requirements must be completed separately on each remote computer before continuing with the installation instructions.
Installation Instructions
Setup Folder
Copy the entire installation folder (
Setup
) into a local directory, referred to as<local_TPS_Setup_folder>
.
Open a PowerShell console as administrator. Press Windows+R, to open the Run dialog, type
powershell
and press Ctrl+Shift+ENTER.
If prompted by User Account Control (UAC) dialog, click Yes to continue.
Type
cd <local_TPS_Setup_folder>
and press ENTER, to change the current directory to the path whereTurboPlayerServiceSetup.exe
is located.
Credentials
If you prefer not to save your credentials, you can skip steps 5, 6, 7, and 8. In this case, you will be prompted to enter your credentials when required during the installation.
Type
Save-CredentialAsXml.ps1
press ENTER.Enter User name and Password in the Windows PowerShell credential request window.
Press OK
A new XML file,
Credential.xml
, is created, which contains the credentials stored in an encrypted form. The XML file can only be decrypted by the current user on this computer.
Configuration
Open the
TPSSetupConfiguration.psd1
with your favorite text editor or notepadSet the ComputerName to the target machine(s) where you want to install TurboPlayer Service. Multiple computers names are separated by a comma. Provide an empty string to install TurboPlayer Service on the current computer. If you want to install TurboPlayer Service only on the local computer comment out ComputerName or provide only an empty string.
If you are using the credential file as specified in steps 5, 6, 7, and 8, set the CredentialPath to point to the XML file,
Credential.xml
.If you install the TurboPlayer Service on multiple computers, the SetupExePath must point to a file share that is accessible from all computers with the credentials specified in the file CredentialPath.
The configuration properties are described at https://davidsystems.atlassian.net/wiki/spaces/LTPS/pages/edit-v2/806649880#Configuration-Properties
The setup properties for SetupArgumentList are described at Unattended TPS installation using a batch file on a local computer | Setup-Properties
@{
<#
TPSSetupConfiguration.psd1
Configuration file for Install-TurboPlayerService.ps1
- Version: 1.0.0.1
#>
# Specify the comma-separated list of computers where TurboPlayer service should be installed on.
# Leave ComputerName empty to install TurboPlayer service on the local computer.
# To install TPS parallel on multiple computers, remove the comment ('#') before the comma and
# and replace or add the computer names.
# If a computer other than an empty string is specified, PowerShell remoting with WsMan/WinRM is used.
# Remote computer must be reachable via WsMan/WinRM. In this case credentials stored in CredentialPath are used
# for accessing the remote computer.
# You can enable PowerShell remoting by calling "Enable-PSRemoting" on the target computer. A restart is required.
ComputerName = '' #, 'VM-TPS-04', 'VM-TPS-05'
# CredentialPath contains the path to an xml file which contains the credentials for accessing the remote computer and
# the file share where TurboPlayerServiceSetup.exe is located (SetupExePath).
# The '.\Credential.xml' file specified CredentialPath can be created with the Save-CredentialAsXml.ps1 script.
# If CredentialPath file does not exist or can't be read, the script prompts for credentials with Get-Credential.
# The Credentials file contains the password as secure string.
# This means credentials are only valid if they are encoded with the current user and the current computer
CredentialPath = '' # '.\Credential.xml'
# SetupExePath specifies the path where TurboPlayerServiceSetup.exe is located.
# If you want to install the TurboPlayer Service on remote computers, the path must be a file share accessible from all computers.
# The path may contain the wildcards '*' and '?', to specify a path which is not known in advanced.
# This allows to use the same configuration file to install always the latest version of TurboPlayer Service,
# if the new version is copied to the file share.
# If mulitple TurboPlayerServiceSetup.exe are found, the one with the highest version number is installed.
#SetupExePath = '\\fileserver1\digasoft\SW_ARCHIV\TurboPlayerService\Software\*\Setup\TurboPlayerServiceSetup.exe'
SetupExePath = '.\TurboPlayerServiceSetup.exe'
# Set the parameter for the TurboPlayer Service setup
SetupArgumentList = @{
...
}
}
Save the
TPSSetupConfiguration.psd1
configuration file.
Installation
In the PowerShell console type
./Install-TurboPlayerService.ps1 -ConfigurationFilePath .\TPSSetupConfiguration.psd1
and press ENTER.
Next up
Once you have completed the installation, proceed to the Post-installation steps to get and install the license file.
The license file must also be copied to each remote computer where the TurboPlayer Service is installed.
Configuration Properties
Property name | Explanation | Example | Type | Allowed values | Default value |
---|---|---|---|---|---|
ComputerName | Specify the list of computers where TurboPlayer service should be installed on. Leave ComputerName empty to install TurboPlayer service on the local computer. | ‘', 'VM-TPS-04’ | comma-separated list of strings | The NETBIOS name, IP address, or fully qualified domain name of one or more computers in a comma-separated list. |
|
CredentialPath | CredentialPath contains the path to an xml file which contains the credentials for accessing the remote computer and the file share where | '.\Credential.xml' | string | a filename |
|
SetupExePath | SetupExePath specifies the path where If you want to install the TurboPlayer Service on remote computers, the path must be a file share accessible from all computers. The path may contain wildcards e.g. *, to find unknown or not existing folders with new | '.\TurboPlayerServiceSetup.exe' | string | file path including wild cards ‘*' and '?’ |
|
SetupArgumentList | SetupArgumentList contains the setup properties which are passed the as argument list to the setup program. The full list of setup properties are listed on Unattended TPS installation using a batch file on a local computer | Setup Properties | @{ DIGASYSTEM_CONFIGURATION = 'myTPServiceConfig' } | hashtable |
|
|
Additional Information
Here is a diagram illustrating the dependencies of the PowerShell scripts.