Fix broken redirection of arguments

This commit is contained in:
Manuel Thalmann 2024-08-10 15:15:40 +02:00
parent 89abeada06
commit 9de3de5bb2
2 changed files with 12 additions and 8 deletions

View file

@ -3,7 +3,9 @@ param(
[hashtable] $Arguments
)
$null = New-Module {
& {
param($parameters);
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
$softwarePath = "$PSScriptRoot/../../Software";
@ -12,17 +14,17 @@ $null = New-Module {
"$softwarePath/TobiiGameHub/Manage.ps1"
);
Start-SoftwareInstaller @PSBoundParameters `
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 @PSBoundParameters;
. $script @parameters;
}
} `
-UserConfigurator {
foreach ($script in $appScripts) {
. $script @PSBoundParameters;
. $script @parameters;
}
};
};
} $PSBoundParameters;

View file

@ -3,7 +3,9 @@ param(
[hashtable] $Arguments
)
$null = New-Module {
& {
param($parameters)
. "$PSScriptRoot/../../../Common/Scripts/BrowserAutomation.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
@ -15,7 +17,7 @@ $null = New-Module {
[System.Tuple]::Create("visualstudio2022community", "VisualStudio.17.Release", "Microsoft.VisualStudio.Product.Community")
);
Start-SoftwareInstaller @PSBoundParameters `
Start-SoftwareInstaller @parameters `
-Installer {
foreach ($version in $versions) {
$packageName = $version[0];
@ -29,4 +31,4 @@ $null = New-Module {
# ToDo: Add restoration
# Only restore version if it has been backed up
};
} $PSBoundParameters;