# 1) Kilit tutabilecek her şeyi kapat$blockers = "WinStore*","WSReset","backgroundTaskHost","Xbox*","GameBar*",
"Gaming*","Widgets*","WidgetService","PhoneExperienceHost",
"YourPhone","NitroSense*","DTSSoundUnbound","DTS*"
foreach($b in $blockers){ Get-Process -Name $b -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue }
Stop-Service -Name GamingServices,GamingServicesNet -Force -ErrorAction SilentlyContinue
Get-Process | Where-Object { $_.Path -like "*WindowsApps*" } | Stop-Process -Force -ErrorAction SilentlyContinue
# 2) (Varsa) bağımlılıkları yeniden zorla – zarar vermez
Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion .\Microsoft.VCLibs*.appx
$ux = Get-ChildItem . -Include "Microsoft.UI.Xaml.*_x64__8wekyb3d8bbwe.appx" | Sort-Object Name -Descending | Select-Object -First 1
if($ux){ Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion $ux.FullName }
Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion .\Microsoft.NET.Native.Runtime*_x64__8wekyb3d8bbwe.appx
Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion .\Microsoft.NET.Native.Framework*_x64__8wekyb3d8bbwe.appx
# 3) Asıl: Microsoft.WindowsStore bundle’ı kur
$bundle = Get-ChildItem . -Include "Microsoft.WindowsStore*.msixbundle","Microsoft.WindowsStore*.appxbundle" | Sort-Object Name -Descending | Select-Object -First 1
if(-not $bundle){ Write-Host ">>> Store bundle bulunamadı: Microsoft.WindowsStore*.msixbundle" -ForegroundColor Yellow; break }
Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion $bundle.FullName -DeferRegistrationWhenPackagesAreInUse
# 4) Store’u yeniden register et + protokolü onar
$pkg = Get-AppxPackage -AllUsers Microsoft.WindowsStore
if($pkg){ Add-AppxPackage -DisableDevelopmentMode -Register "$($pkg.InstallLocation)\AppxManifest.xml" }
New-Item -Path "HKCU:\Software\Classes\ms-windows-store\shell\open\command" -Force | Out-Null
New-ItemProperty -Path "HKCU:\Software\Classes\ms-windows-store" -Name "(default)" -Value "URL:ms-windows-store Protocol" -PropertyType String -Force | Out-Null
New-ItemProperty -Path "HKCU:\Software\Classes\ms-windows-store" -Name "URL Protocol" -Value "" -PropertyType String -Force | Out-Null
New-ItemProperty -Path "HKCU:\Software\Classes\ms-windows-store\shell\open\command" -Name "(default)" -Value "C:\Windows\explorer.exe ms-windows-store:" -PropertyType String -Force | Out-Null
# 5) Explorer’ı yenile ve Store’u aç
Stop-Process -Name explorer -Force
Start-Process explorer.exe
Start-Process "ms-windows-store://home"