From 4b2009cee4987816ce90bf9a29257c6df01037fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=20M=C3=A4ki?= Date: Thu, 30 May 2024 14:45:23 +0300 Subject: [PATCH] Add WithSecure Elements Agent to the installer script --- Install-Software.ps1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Install-Software.ps1 b/Install-Software.ps1 index c1c5605..9cf0579 100644 --- a/Install-Software.ps1 +++ b/Install-Software.ps1 @@ -411,6 +411,18 @@ function Install-VeecoVision { return 0 } +function Install-WithSecure { + $FilePath = "${SoftwareRepoPath}\WithSecure\ElementsAgentInstaller*.exe" + if (Test-Path "${FilePath}") { + Show-Output "Installing WithSecure Elements Agent" + Start-Process -NoNewWindow -Wait "${FilePath}" + } else { + Show-Output -ForegroundColor Red "WithSecure Elements Agent installer was not found. Has the file been moved?" + return 1 + } + return 0 +} + function Install-WSL { if (Test-CommandExists "wsl") { Show-Output "Installing Windows Subsystem for Linux (WSL), version >= 2" @@ -457,6 +469,7 @@ $OtherOperations = [ordered]@{ "Thorlabs Kinesis" = ${function:Install-ThorlabsKinesis}, "Driver for Thorlabs motors and stages"; "Veeco (Wyko) Vision" = ${function:Install-VeecoVision}, "Data analysis tool for Veeco/Wyko profilers"; "Windows Subsystem for Linux (WSL, NOTE!)" = ${function:Install-WSL}, "Compatibility layer for running Linux applications on Windows, version >= 2. Hardware virtualization should be enabled in BIOS/UEFI before installing."; + "WithSecure Elements Agent" = ${function:Install-WithSecure}, "Anti-virus. Requires a license."; "Xeneth" = ${function:Install-Xeneth}, "Driver for Xenics cameras"; }