Windows Script Host error after launching the Custom Shortcut for a WSA app
ChaliceChore opened this issue · comments
I tried creating a New Custom Shortcut of type 'Other' with these details:
Shortcut Target:
%LocalAppData%\Microsoft\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\WsaClient.exe
Shortcut Arguments:
/launch wsa://com.android.vending
Icon:
"%LocalAppData%\Packages\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\LocalState\com.android.vending.ico"
Name:
Play Store
But after launching the app, I get the following error window:
What am I doing wrong?
I solved it immediately after posting this issue.
I opened the .vbs file (C:\ProgramData\TileIconify\Play Store\Play Store.vbs
) and found out that the WshShell.CurrentDirectory
was getting set to the folder location of TileIconifier.exe
followed by the folder location of WsaClient.exe
. In my case it was WshShell.CurrentDirectory = "D:\Software-1\TileIconifier\%LocalAppData%\Microsoft\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\"
I deleted the shortcut and made a new one with the Shortcut Target C:\Users\<username>\AppData\Local\Microsoft\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\WsaClient.exe
and keeping everything else the same. It's working now.