mirror of
https://github.com/builtbybel/BloatyNosy.git
synced 2025-02-09 06:19:30 +01:00
Delete extensions/RestoreInboxApps.ps1
This commit is contained in:
parent
2bc9f196ac
commit
d4f60262d5
@ -1,31 +0,0 @@
|
||||
# Get all installed Windows apps for all users
|
||||
$allApps = Get-AppxPackage -AllUsers
|
||||
|
||||
# Counter for tracking progress
|
||||
$totalApps = $allApps.Count
|
||||
$currentAppIndex = 1
|
||||
$reinstalledCount = 0
|
||||
|
||||
# Loop through each app and reinstall
|
||||
foreach ($app in $allApps) {
|
||||
# Display current status
|
||||
Write-Host "[$currentAppIndex / $totalApps] Reinstalling $($app.Name)..." -ForegroundColor Yellow
|
||||
|
||||
# Try to reinstall the app
|
||||
try {
|
||||
Add-AppxPackage -Register "$($app.InstallLocation)\appxmanifest.xml" -DisableDevelopmentMode -ErrorAction Stop
|
||||
Write-Host "[$currentAppIndex / $totalApps] $($app.Name) reinstalled successfully." -ForegroundColor Green
|
||||
$reinstalledCount++
|
||||
} catch {
|
||||
Write-Host "[$currentAppIndex / $totalApps] Error occurred while reinstalling $($app.Name): $_" -ForegroundColor Red
|
||||
}
|
||||
|
||||
# Increment the counter
|
||||
$currentAppIndex++
|
||||
}
|
||||
|
||||
# Display final status
|
||||
if ($reinstalledCount -eq $totalApps) {
|
||||
Write-Host "All apps reinstalled successfully." -ForegroundColor Green
|
||||
Write-Host "Winpilot and Clippy have reinstalled everything possible." -ForegroundColor Cyan
|
||||
}
|
Loading…
Reference in New Issue
Block a user