From acde0354ef667ac7cea0b1d12443db56c5c48661 Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Sun, 21 Jul 2024 01:03:08 +0200 Subject: [PATCH] Update WAU-MSI_Actions.ps1 --- Sources/WAU/Winget-AutoUpdate/WAU-MSI_Actions.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/WAU/Winget-AutoUpdate/WAU-MSI_Actions.ps1 b/Sources/WAU/Winget-AutoUpdate/WAU-MSI_Actions.ps1 index 94b71d7..77ccce4 100644 --- a/Sources/WAU/Winget-AutoUpdate/WAU-MSI_Actions.ps1 +++ b/Sources/WAU/Winget-AutoUpdate/WAU-MSI_Actions.ps1 @@ -98,8 +98,8 @@ function Install-WingetAutoUpdate { $sec = $sec + '(A;;GRGX;;;AU)' $task.SetSecurityDescriptor($sec, 0) - #Copy App list to install folder - if ($AppListPath) { + #Copy App list to install folder (exept on self update) + if ($AppListPath -notlike "$InstallPath*") { Copy-Item -Path $AppListPath -Destination $InstallPath }