Updated apps lists to use text files instead of json objects

This commit is contained in:
Zachary Gorman 2025-04-28 12:07:10 -07:00
parent b650a58ca6
commit bb036aff63
3 changed files with 6 additions and 62 deletions

View file

@ -1,56 +0,0 @@
[
{
"DisplayName": "Hyland Web ActiveX Controls"
},
{
"DisplayName": "Intel(R) Processor Graphics"
},
{
"DisplayName": "Microsoft Visual Studio Setup WMI Provider (default)"
},
{
"DisplayName": "NetSupport Manager"
},
{
"DisplayName": "Office 16 Click-to-Run Localization Component"
},
{
"DisplayName": "Realtek Audio COM Components"
},
{
"DisplayName": "Realtek High Definition Audio Driver"
},
{
"DisplayName": "Vulkan Run Time Libraries"
},
{
"DisplayName": "Microsoft Teams Meeting Add-in for Microsoft Office"
},
{
"DisplayName": "Documentation Manager"
},
{
"DisplayName": "64 Bit HP CIO Components Installer"
},
{
"DisplayName": "Teams Machine-Wide Installer"
},
{
"DisplayName": "Google Legacy Browser Support"
},
{
"DisplayName": "Maxx Audio Installer"
},
{
"DisplayName": "Visage 7.1 (64 bit)"
},
{
"DisplayName": "Microsoft Edge Update"
},
{
"DisplayName": "Npcap OEM"
},
{
"DisplayName": "Dell PointStick Driver"
}
]

Binary file not shown.

View file

@ -24,11 +24,11 @@ function Get-AppDiff {
Write-Progress -Activity "Filtering out standard apps from $pc" -Status 'Removing version numbers and loading reference' -PercentComplete 10 -ParentId 1 Write-Progress -Activity "Filtering out standard apps from $pc" -Status 'Removing version numbers and loading reference' -PercentComplete 10 -ParentId 1
$apps = Remove-Version $apps $apps = Remove-Version $apps
# Open example file # Open example file
$lookupTablePath = Join-Path (get-item $PSScriptRoot).Parent.FullName 'Data\ExpectedApps.json' $lookupTablePath = Join-Path (get-item $PSScriptRoot).Parent.FullName 'Data\ExpectedApps.txt'
$example = get-content $lookupTablePath | ConvertFrom-Json $example = get-content $lookupTablePath
# Open file with manually added apps to ignore # Open file with manually added apps to ignore
$lookupTablePath = Join-Path (get-item $PSScriptRoot).Parent.FullName 'Data\AppsToIgnore.json' $lookupTablePath = Join-Path (get-item $PSScriptRoot).Parent.FullName 'Data\AppsToIgnore.txt'
$ignore = get-content $lookupTablePath | ConvertFrom-Json $ignore = get-content $lookupTablePath
$exclude = $example + $ignore $exclude = $example + $ignore
$output = @() $output = @()
# Finds each app that isn't in the example # Finds each app that isn't in the example
@ -43,7 +43,7 @@ function Get-AppDiff {
break break
} }
} }
if ($skip -or $exclude.DisplayName -contains $app.DisplayName) { continue } if ($skip -or $exclude -contains $app.DisplayName) { continue }
$output += $app $output += $app
} }
@ -111,7 +111,7 @@ function Get-ExampleApps {
$lookupTablePath = Join-Path (get-item $PSScriptRoot).Parent.FullName 'Data\ExpectedApps.json' $lookupTablePath = Join-Path (get-item $PSScriptRoot).Parent.FullName 'Data\ExpectedApps.json'
Copy-FileNoDestruct $lookupTablePath $($lookupTablePath + ".bak") Copy-FileNoDestruct $lookupTablePath $($lookupTablePath + ".bak")
Write-Host "Writing expected apps to" $lookupTablePath Write-Host "Writing expected apps to" $lookupTablePath
$apps | ConvertTo-Json | Out-File $lookupTablePath $apps | Out-File $lookupTablePath
} }
if ($examplePC) { if ($examplePC) {