Fix broken redirection of arguments
This commit is contained in:
parent
6eb4998293
commit
ca6d7977d0
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue