Move PinnedItem script to proper location

This commit is contained in:
Manuel Thalmann 2024-08-08 14:04:51 +02:00
parent b02c63adb2
commit d059374124
2 changed files with 5 additions and 4 deletions

View file

@ -88,7 +88,7 @@ $null = New-Module {
Invoke-Hook "Install-PSModules" -Fallback { Invoke-Hook "Install-PSModules" -Fallback {
Install-Module -AcceptLicense -Force PSWindowsUpdate; Install-Module -AcceptLicense -Force PSWindowsUpdate;
Install-Module -AcceptLicense -Force PSScriptAnalyzer; Install-Module -AcceptLicense -Force PSScriptAnalyzer;
. "$PSScriptRoot/../../Common/Software/PinnedItem/Manage.ps1"; . "$PSScriptRoot/../Software/PinnedItem/Manage.ps1";
}; };
if (-not (Test-PSPackage Selenium.WebDriver)) { if (-not (Test-PSPackage Selenium.WebDriver)) {

View file

@ -3,8 +3,8 @@ param (
[hashtable] $Arguments [hashtable] $Arguments
) )
. "$PSScriptRoot/../PowerShell/Module.ps1"; . "$PSScriptRoot/../../../Common/Software/PowerShell/Module.ps1";
. "$PSScriptRoot/../../Scripts/Software.ps1"; . "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
$parameters = Get-ModuleInstallerComponents "PinnedItem" -NativeOnly; $parameters = Get-ModuleInstallerComponents "PinnedItem" -NativeOnly;
@ -17,6 +17,7 @@ $arguments.Add("Installer", $parameters.installer);
Start-SoftwareInstaller @parameters -Installer { Start-SoftwareInstaller @parameters -Installer {
param( param(
[scriptblock] $Installer,
[hashtable] $Arguments [hashtable] $Arguments
) )
@ -27,5 +28,5 @@ Start-SoftwareInstaller @parameters -Installer {
choco install --source windowsFeatures -y $feature; choco install --source windowsFeatures -y $feature;
} }
& $Arguments.Installer; & $Arguments.Installer @PSBoundParameters;
} }