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 [hashtable] $Arguments
) )
$null = New-Module { & {
param($parameters);
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
$softwarePath = "$PSScriptRoot/../../Software"; $softwarePath = "$PSScriptRoot/../../Software";
@ -12,17 +14,17 @@ $null = New-Module {
"$softwarePath/TobiiGameHub/Manage.ps1" "$softwarePath/TobiiGameHub/Manage.ps1"
); );
Start-SoftwareInstaller @PSBoundParameters ` Start-SoftwareInstaller @parameters `
-Installer { -Installer {
Install-SetupPackage -Source "https://files.update.tech.tobii.com/Tobii_Eye_Tracking_Core_v2.16.8.214_x86.exe"; Install-SetupPackage -Source "https://files.update.tech.tobii.com/Tobii_Eye_Tracking_Core_v2.16.8.214_x86.exe";
foreach ($script in $appScripts) { foreach ($script in $appScripts) {
. $script @PSBoundParameters; . $script @parameters;
} }
} ` } `
-UserConfigurator { -UserConfigurator {
foreach ($script in $appScripts) { foreach ($script in $appScripts) {
. $script @PSBoundParameters; . $script @parameters;
} }
}; };
}; } $PSBoundParameters;

View file

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