diff --git a/Sources/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 b/Sources/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 index bb1142a..e0f9284 100644 --- a/Sources/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 @@ -68,7 +68,7 @@ function Get-WingetOutdatedApps { #If current user is not system, remove system apps from list if ($IsSystem -eq $false) { - $SystemApps = Get-Content -Path "$WorkingDir\winget_system_apps.txt" -ErrorAction SilentlyContinue + $SystemApps = Get-Content -Path "$WorkingDir\config\winget_system_apps.txt" -ErrorAction SilentlyContinue $upgradeList = $upgradeList | Where-Object { $SystemApps -notcontains $_.Id } } diff --git a/Sources/Winget-AutoUpdate/functions/Get-WingetSystemApps.ps1 b/Sources/Winget-AutoUpdate/functions/Get-WingetSystemApps.ps1 index 8f653ea..261bbd5 100644 --- a/Sources/Winget-AutoUpdate/functions/Get-WingetSystemApps.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Get-WingetSystemApps.ps1 @@ -1,7 +1,7 @@ function Get-WingetSystemApps { #Json File, where to export system installed apps - $jsonFile = "$WorkingDir\winget_system_apps.txt" + $jsonFile = "$WorkingDir\config\winget_system_apps.txt" #Get list of installed Winget apps to json file & $Winget export -o $jsonFile --accept-source-agreements -s winget | Out-Null diff --git a/Sources/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 b/Sources/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 index fa3db58..00eb446 100644 --- a/Sources/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 @@ -101,7 +101,9 @@ function Invoke-PostUpdateActions { "$WorkingDir\functions\Write-Log.ps1", "$WorkingDir\functions\Get-WinGetAvailableVersion.ps1", "$WorkingDir\functions\Invoke-ModsProtect.ps1", - "$WorkingDir\Version.txt" + "$WorkingDir\functions\Write-CMTraceLog.ps1", + "$WorkingDir\Version.txt", + "$WorkingDir\winget_system_apps.txt" ) foreach ($FileName in $FileNames) { if (Test-Path $FileName) {