PortValhalla/scripts/Windows/Software/tobii-gamehub/Main.ps1

23 lines
727 B
PowerShell
Raw Permalink Normal View History

2024-08-07 22:06:49 +00:00
using namespace Microsoft.Win32;
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";
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
2024-09-30 03:00:20 +00:00
Start-SoftwareInstaller @args `
2024-08-07 22:06:49 +00:00
-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;
};