Add scripts for installing Tobii apps
This commit is contained in:
parent
2d585b7e7b
commit
6d6a187d29
|
@ -3,9 +3,26 @@ param(
|
|||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
$null = New-Module {
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
$softwarePath = "$PSScriptRoot/../../Software";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
-Installer {
|
||||
Install-SetupPackage -Source "https://files.update.tech.tobii.com/Tobii_Eye_Tracking_Core_v2.16.8.214_x86.exe";
|
||||
};
|
||||
$appScripts = @(
|
||||
"$softwarePath/TobiiGhost/Manage.ps1",
|
||||
"$softwarePath/TobiiGameHub/Manage.ps1"
|
||||
);
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
-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 @PSBoundParameters;
|
||||
}
|
||||
} `
|
||||
-UserConfigurator {
|
||||
foreach ($script in $appScripts) {
|
||||
. $script @PSBoundParameters;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
30
scripts/Windows/Software/TobiiGameHub/Manage.ps1
Normal file
30
scripts/Windows/Software/TobiiGameHub/Manage.ps1
Normal file
|
@ -0,0 +1,30 @@
|
|||
using namespace Microsoft.Win32;
|
||||
|
||||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
-Installer {
|
||||
param(
|
||||
[scriptblock] $Installer
|
||||
)
|
||||
|
||||
Install-ChocoPackage "vcredist2013";
|
||||
} `
|
||||
-UserConfigurator {
|
||||
$file = "setup.exe";
|
||||
$dir = New-TemporaryDirectory;
|
||||
|
||||
Push-Location $dir;
|
||||
Invoke-WebRequest "https://files.update.oem.tobii.com/GameHub/TobiiGameHub.3.0.1-Setup.exe" -OutFile $file;
|
||||
Write-Host "Running Tobii Game Hub installer";
|
||||
Start-Process -Wait -FilePath "$PSScriptRoot/GameHub.ahk";
|
||||
Pop-Location;
|
||||
|
||||
Remove-Item -Recurse $dir;
|
||||
};
|
28
scripts/Windows/Software/TobiiGhost/Manage.ps1
Normal file
28
scripts/Windows/Software/TobiiGhost/Manage.ps1
Normal file
|
@ -0,0 +1,28 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
-Installer {
|
||||
param(
|
||||
[scriptblock] $Installer
|
||||
)
|
||||
|
||||
Install-ChocoPackage "dotnet-6.0-desktopruntime";
|
||||
} `
|
||||
-UserConfigurator {
|
||||
$file = "setup.exe";
|
||||
$dir = New-TemporaryDirectory;
|
||||
|
||||
Push-Location $dir;
|
||||
Invoke-WebRequest "https://files.update.oem.tobii.com/Ghost/TobiiGhost.1.14.1-Setup.exe" -OutFile $file;
|
||||
Write-Host "Running Tobii Ghost installer";
|
||||
Start-Process -Wait -FilePath "$PSScriptRoot/Ghost.ahk";
|
||||
Pop-Location;
|
||||
|
||||
Remove-Item -Recurse $dir;
|
||||
};
|
Loading…
Reference in a new issue