Move winget_system_apps.txt to \config folder
parent
fc5cf9c3ab
commit
0f15be36f3
|
@ -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 }
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue