PortValhalla/scripts/Windows/Drivers/Tobii EyeX/Manage.ps1

32 lines
917 B
PowerShell
Raw Normal View History

2024-08-07 14:17:49 +00:00
param(
$Action,
[hashtable] $Arguments
)
2024-08-07 22:06:49 +00:00
& {
param($parameters);
2024-08-07 14:17:49 +00:00
2024-09-23 01:33:17 +00:00
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
2024-08-07 22:06:49 +00:00
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
$softwarePath = "$PSScriptRoot/../../Software";
$appScripts = @(
"$softwarePath/TobiiGhost/Manage.ps1",
"$softwarePath/TobiiGameHub/Manage.ps1"
);
Start-SoftwareInstaller @parameters `
-Installer {
Install-SetupPackage -Source "https://files.update.tech.tobii.com/Tobii_Eye_Tracking_Core_v2.16.8.214_x86.exe";
foreach ($script in $appScripts) {
. $script -Action ([InstallerAction]::Install) @parameters;
}
} `
-UserConfigurator {
foreach ($script in $appScripts) {
. $script -Action ([InstallerAction]::ConfigureUser) @parameters;
}
};
} $PSBoundParameters;