Just to give an impression the central part of this script, installing Arena and FactoryTalk, look below:
Function install{
Show-BalloonTip -BalloonTipText $ballonTipTextInstallStart -BalloonTipTitle $costumInstallTitle
Write-Log -Message "Installation start" -Source 'Deploy-Application'
Execute-Process -Path "$dirFiles\Install\FTActivationManager\Redist\CodeMeter_6.20\CodeMeterRuntime.exe" -Parameters "/q"
Execute-MSI -Action Install -Path "$dirFiles\Install\FTActivationManager\Redist\MSXML_4.0SP2\msxml.msi"
Execute-MSI -Action Install -Path "$dirFiles\Redist\vba\Vba71.msi"
Execute-MSI -Action Install -Path "$dirFiles\Redist\vba\Vba71_1033.MSI"
Execute-MSI -Action Install -Path "$dirFiles\Redist\AccessDataBaseEngine\AceRedist.msi"
Execute-MSI -Action Install -Path "$dirFiles\Redist\Crystal\CRRuntime_32bit_13_0_15.msi"
Execute-MSI -Action Install -Path "$dirFiles\Install\FTActivationManager\Redist\FTDiagnostics_2.74.00\FactoryTalk Diagnostics 2.74.00 (CPR 9 SR 7.4).msi"
Execute-MSI -Action Install -Path "$dirFiles\Install\FTActivationManager\Common\4.00.01-FTA\FactoryTalk Activation Manager 4.00.01.msi"
Execute-MSI -Action Install -Path "$dirFiles\Install\Arena\Arena_x86.msi" -AddParameters "PIDKEY=""ENTER_PID_KEY"" COMPANYNAME=""ENTER_CORP_NAME"" USERNAME=""IT_DEP"" CONTROL_LAUNCH=Yes ALLUSERS=1 "
Set-RegistryKey -Key 'HKLM\SOFTWARE\Wow6432Node\FLEXlm License Manager' -Name 'FLEXSVR_LICENSE_FILE' -Value "SERVER_PORT_NUMBER@SERVER_FQDN;C:\\Users\\Public\\Documents\\Rockwell Automation\\Activations;C:\\ProgramData\\Rockwell Automation\\Dongle" -Type String
Set-RegistryKey -Key 'HKLM\SOFTWARE\Wow6432Node\FLEXlm License Manager' -Name 'Service' -Value "FactoryTalk Activation Servic" -Type String
Set-RegistryKey -Key 'HKLM\SOFTWARE\Wow6432Node\FLEXlm License Manager' -Name 'LM_LICENSE_FILE' -Value "C:\\Users\\Public\\Documents\\Rockwell Automation\\Activations;C:\\ProgramData\\Rockwell Automation\\Dongle" -Type String
Set-RegistryKey -Key 'HKLM\SOFTWARE\Wow6432Node\FLEXlm License Manager\FactoryTalk Activation Service' -Name 'Lmgrd' -Value "C:\\Program Files (x86)\\Rockwell Software\\FactoryTalk Activation\\lmgrd.exe" -Type String
Set-RegistryKey -Key 'HKLM\SOFTWARE\Wow6432Node\FLEXlm License Manager\FactoryTalk Activation Service' -Name 'LMGRD_LOG_FILE' -Value "C:\\Users\\Public\\Documents\\Rockwell Automation\\Activations\\Logs\\RSsvr.log" -Type String
Set-RegistryKey -Key 'HKLM\SOFTWARE\Wow6432Node\FLEXlm License Manager\FactoryTalk Activation Service' -Name 'License' -Value "C:\\Users\\Public\\Documents\\Rockwell Automation\\Activations;C:\\ProgramData\\Rockwell Automation\\Dongle" -Type String
Set-RegistryKey -Key 'HKLM\SOFTWARE\Wow6432Node\FLEXlm License Manager\FactoryTalk Activation Service' -Name 'cmdlineparams' -Value "" -Type String
Set-RegistryKey -Key 'HKLM\SOFTWARE\Wow6432Node\FLEXlm License Manager\FactoryTalk Activation Service' -Name 'Service' -Value "FactoryTalk Activation Service" -Type String
$services=Get-Service -DisplayName "FactoryTalk Activation*"
foreach ($service in $services){
Restart-Service -Name $service.Name -Force -ErrorAction SilentlyContinue
}
}
View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.