Add functionality to remove Edge Progressive Web Apps and update system PATH for Miniforge scripts

This commit is contained in:
2025-09-26 09:48:06 -05:00
parent f9368c727b
commit e85aa6b243
2 changed files with 38 additions and 0 deletions

View File

@@ -178,6 +178,34 @@ foreach ($app in $officeAppsToRemove) {
Write-Host "Office application removal process completed." -ForegroundColor Green
# Remove Edge Progressive Web Apps (PWAs) like LinkedIn
Write-Host "Checking and removing Edge Progressive Web Apps..." -ForegroundColor Yellow
$edgePWAPath = "$env:LOCALAPPDATA\Microsoft\Edge\User Data\Default\Web Applications"
if (Test-Path $edgePWAPath) {
try {
$pwaFolders = Get-ChildItem -Path $edgePWAPath -Directory -ErrorAction SilentlyContinue
foreach ($folder in $pwaFolders) {
$manifestPath = Join-Path $folder.FullName "Manifest"
if (Test-Path $manifestPath) {
$manifestContent = Get-Content $manifestPath -Raw -ErrorAction SilentlyContinue
if ($manifestContent -match "linkedin" -or $manifestContent -match "LinkedIn") {
Write-Host "Found LinkedIn PWA, removing folder: $($folder.Name)" -ForegroundColor Red
Remove-Item -Path $folder.FullName -Recurse -Force -ErrorAction SilentlyContinue
Write-Host "Removed LinkedIn PWA" -ForegroundColor Green
}
}
}
}
catch {
Write-Warning "Failed to check Edge PWAs: $_"
}
} else {
Write-Host "Edge PWA directory not found" -ForegroundColor Gray
}
Write-Host "Edge PWA removal process completed." -ForegroundColor Green
# Font Install
Write-Host "Checking and installing fonts..." -ForegroundColor Yellow
$fontSourceFolder = ".\Fonts"