Shutdown WSA before install

This commit is contained in:
Howard Wu 2023-03-20 02:38:16 +08:00
parent 25dc1d6597
commit 01afe6752f

View file

@ -134,6 +134,7 @@ If (($null -Ne $Installed) -And (-Not ($Installed.IsDevelopmentMode))) {
}
Clear-Host
Write-Host "Installing MagiskOnWSA...."
If (Test-CommandExists WsaClient) { Start-Process WsaClient -Wait -Args "/shutdown" }
Stop-Process -Name "WsaClient" -ErrorAction SilentlyContinue
Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion -Register .\AppxManifest.xml
If ($?) {