mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-09-04 03:30:25 +00:00
Shutdown WSA before install
This commit is contained in:
parent
25dc1d6597
commit
01afe6752f
1 changed files with 1 additions and 0 deletions
|
@ -134,6 +134,7 @@ If (($null -Ne $Installed) -And (-Not ($Installed.IsDevelopmentMode))) {
|
||||||
}
|
}
|
||||||
Clear-Host
|
Clear-Host
|
||||||
Write-Host "Installing MagiskOnWSA...."
|
Write-Host "Installing MagiskOnWSA...."
|
||||||
|
If (Test-CommandExists WsaClient) { Start-Process WsaClient -Wait -Args "/shutdown" }
|
||||||
Stop-Process -Name "WsaClient" -ErrorAction SilentlyContinue
|
Stop-Process -Name "WsaClient" -ErrorAction SilentlyContinue
|
||||||
Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion -Register .\AppxManifest.xml
|
Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion -Register .\AppxManifest.xml
|
||||||
If ($?) {
|
If ($?) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue