LSPosed / MagiskOnWSALocal

Integrate Magisk root and Google Apps into WSA (Windows Subsystem for Android)
GNU Affero General Public License v3.0
9.49k stars 22.97k forks source link

[Bug] Install Failed WSA using Install.ps1 script #541

Closed sahoonalinikanta closed 1 year ago

sahoonalinikanta commented 1 year ago

Steps to reproduce/复现步骤

  1. Executing Install.ps1 script in Powershell

Expected behaviour/预期行为

Should install the WSA

Actual behaviour/实际行为

It is failing with error message Screenshot 2023-05-17 112141

MagiskOnWSALocal commit full SHA/MagiskOnWSALocal 提交的完整哈希

7a33f97d192a4363ddfbc886c08d0f5710e9e2ac

Linux distribution info/Linux 发行版信息

Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy

Windows version/Windows 版本

Windows 11 Pro version 22H2 OS Build 23451.100

Build Parameters/构建参数

COMMAND_LINE=--arch x64 --release-type WIF --root-sol magisk --gapps-brand MindTheGapps --remove-amazon --magisk-ver beta INFO: Architecture: x64 INFO: Release Type: WIF INFO: Magisk Version: beta INFO: GApps Brand: MindTheGapps INFO: GApps Variant: pico INFO: Root Solution: magisk Build: RELEASE_TYPE=Insider Fast

Version requirement/版本要求

Logs/日志

[//]: <> (Don't modify above) ``` Start-Process: F:\WSA\InstallDir\Install.ps1:54 Line | 54 | Start-Process "wsa://com.topjohnwu.magisk" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | This command cannot be run due to the error: An error occurred trying to start process 'wsa://com.topjohnwu.magisk' with working directory 'F:\WSA\InstallDir'. The parameter is incorrect. Start-Process: F:\WSA\InstallDir\Install.ps1:55 Line | 55 | Start-Process "wsa://com.android.vending" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | This command cannot be run due to the error: An error occurred trying to start process 'wsa://com.android.vending' with working directory 'F:\WSA\InstallDir'. The parameter is incorrect. All Done! Press any key to exit PS F:\WSA\InstallDir> ![Screenshot 2023-05-17 112141](https://github.com/LSPosed/MagiskOnWSALocal/assets/41999958/58144b3e-07a0-4785-b820-a7937eec6122) ``` [//]: <> (Don't modify below)
Howard20181 commented 1 year ago

Please retry with the latest commit Please provide more logs

sahoonalinikanta commented 1 year ago

It ended with error again . Which log you want let me know ? Please find the log after the latest commit with SHA ca48cf372cfa383fc6d4245d47083f9e55563e8e

Start-Process: F:\WSA\InstallDir\Install.ps1:57 Line | 57 | Start-Process "wsa://com.topjohnwu.magisk" | ~~~~~~~~~~ | This command cannot be run due to the error: An error occurred trying to start process 'wsa://com.topjohnwu.magisk' with working directory 'F:\WSA\InstallDir'. The parameter is incorrect. Start-Process: F:\WSA\InstallDir\Install.ps1:58 Line | 58 | Start-Process "wsa://com.android.vending" | ~~~~~~~~~ | This command cannot be run due to the error: An error occurred trying to start process 'wsa://com.android.vending' with working directory 'F:\WSA\InstallDir'. The parameter is incorrect. All Done! Press any key to exit PS F:\WSA\InstallDir>

Screenshot 2023-05-17 163616

Howard20181 commented 1 year ago

Please double-click Run.bat instead of running ps1 script in PowerShell.

sahoonalinikanta commented 1 year ago

Same issue even after double clicking the Run.bat

Start-Process: F:\WSA\InstallDir\Install.ps1:57 Line | 57 | Start-Process "wsa://com.topjohnwu.magisk" | ~~~~~~~~~~ | This command cannot be run due to the error: An error occurred trying to start process | 'wsa://com.topjohnwu.magisk' with working directory 'F:\WSA\InstallDir'. The parameter is incorrect. Start-Process: F:\WSA\InstallDir\Install.ps1:58 Line | 58 | Start-Process "wsa://com.android.vending" | ~~~~~~~~~ | This command cannot be run due to the error: An error occurred trying to start process | 'wsa://com.android.vending' with working directory 'F:\WSA\InstallDir'. The parameter is incorrect. All Done! Press any key to exit Deployment operation progress: F:\WSA\InstallDir\AppxManifes… [Processing ]

Screenshot 2023-05-17 164232

Howard20181 commented 1 year ago

Replace the install script with this script Install.ps1.txt

What's the title of the PowerShell window? Please take a full screenshot

sahoonalinikanta commented 1 year ago

title -- Installing MagiskOnWSA

The operation completed successfully. Installing MicrosoftCorporationII.WindowsSubsystemForAndroid version: 2304.40000.5.0 Dependency package Microsoft.UI.Xaml.2.8 x64 current version: 8.2305.5001.0. Nothing to do. Dependency package Microsoft.VCLibs.140.00.UWPDesktop x64 current version: 14.0.32530.0. Nothing to do. Dependency package Microsoft.VCLibs.140.00 x64 current version: 14.0.32530.0. Nothing to do. Installing MagiskOnWSA.... Start-Process: F:\WSA\InstallDir\Install.ps1:57 Line | 57 | Start-Process "wsa://com.topjohnwu.magisk" | ~~~~~~~~~~ | This command cannot be run due to the error: An error occurred trying to start process 'wsa://com.topjohnwu.magisk' with working directory 'F:\WSA\InstallDir'. The parameter is incorrect. Start-Process: F:\WSA\InstallDir\Install.ps1:58 Line | 58 | Start-Process "wsa://com.android.vending" | ~~~~~~~~~ | This command cannot be run due to the error: An error occurred trying to start process 'wsa://com.android.vending' with working directory 'F:\WSA\InstallDir'. The parameter is incorrect. All Done! Press any key to exit Deployment operation progress: F:\WSA\InstallDir\AppxManifes… [Processing ]

Screenshot 2023-05-17 170251

Howard20181 commented 1 year ago

Start PowerShell as Admin cd into WSA dir Run Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion -Register .\AppxManifest.xml What's the output?

sahoonalinikanta commented 1 year ago

nothing in the error log , but application not starting Screenshot 2023-05-17 172456

Howard20181 commented 1 year ago

Can you try it in system PowerShell instead of PowerShell 7?

sahoonalinikanta commented 1 year ago

same result as previous Screenshot 2023-05-17 183816

Howard20181 commented 1 year ago

Have you turned on developer mode yet?

sahoonalinikanta commented 1 year ago

yes Developer mode turned on in the previous version , after update the WSA is not at all opening .

Howard20181 commented 1 year ago

Tested on Windows version 23475 and install smoothly. No idea how this issue happen.

YT-Advanced commented 1 year ago

@sahoonalinikanta You can follow this guide to fix it: https://github.com/YT-Advanced/WSA-Script/blob/main/Guides/MoveToExtDrive.md

Howard20181 commented 1 year ago

I'm install in D drive.

sahoonalinikanta commented 1 year ago

Hi , I am trying to install in F drive. It is not external drive. It is an partition of internal hard drive only. It was working previously in that drive .

On Sat, 10 Jun 2023, 07:05 Howard Wu, @.***> wrote:

I'm install in D driver.

— Reply to this email directly, view it on GitHub https://github.com/LSPosed/MagiskOnWSALocal/issues/541#issuecomment-1585486629, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKAN4VXAO7DHSYI35XWNL5TXKP6BJANCNFSM6AAAAAAYEZX7I4 . You are receiving this because you were mentioned.Message ID: @.***>

YT-Advanced commented 1 year ago

Hi , I am trying to install in F drive. It is not external drive. It is an partition of internal hard drive only. It was working previously in that drive .

Yes, I know, but sometime WSA didn't work when install at other drive. So I think you should test it

sahoonalinikanta commented 1 year ago

So which partition should I use ?? C drive ,??

On Sat, 10 Jun 2023, 07:12 Hoàng Gia Bảo, @.***> wrote:

Hi , I am trying to install in F drive. It is not external drive. It is an partition of internal hard drive only. It was working previously in that drive .

Yes, I know, but sometime WSA didn't work when install at other drive. So I think you should test it

— Reply to this email directly, view it on GitHub https://github.com/LSPosed/MagiskOnWSALocal/issues/541#issuecomment-1585489012, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKAN4VUCUDISLJCHOPQUADLXKP62XANCNFSM6AAAAAAYEZX7I4 . You are receiving this because you were mentioned.Message ID: @.***>

YT-Advanced commented 1 year ago

So which partition should I use ?? C drive ,??

Yes, I think. Or follow the guide above if you want to use in another drive (like F:\ )

sahoonalinikanta commented 1 year ago

thanks a lot for the support it worked. I did not use C drive , just installed from another location . Did not use the existing location