Skip profile creation for PinnedItem

This commit is contained in:
Manuel Thalmann 2024-08-22 23:55:41 +02:00
parent fcc0529c1b
commit 39600c813f

View file

@ -6,7 +6,7 @@ param (
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
. "$PSScriptRoot/../../../Common/Software/PowerShell/Module.ps1"; . "$PSScriptRoot/../../../Common/Software/PowerShell/Module.ps1";
$parameters = Get-ModuleInstallerComponents "PinnedItem" -NativeOnly; $parameters = Get-ModuleInstallerComponents "PinnedItem" -NativeOnly -NoProfile;
foreach ($key in $PSBoundParameters.Keys) { foreach ($key in $PSBoundParameters.Keys) {
$parameters.Add($key, $PSBoundParameters.TryGetValue($key)); $parameters.Add($key, $PSBoundParameters.TryGetValue($key));