Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launching WinRT app from PowerShell

I have a Windows RT app that I need to launch with a script. I've already installed the app on the device with PowerShell, but I need to launch the app with PowerShell or the command prompt. Is there a way to do this? Thanks.

P.S. It looks like there's a way to launch Metro apps on Windows 8 with the Start-MetroApp command, but this doesn't work on Windows RT. Is there some sort of equivalent for Windows RT?

like image 200
user2284286 Avatar asked Dec 06 '25 00:12

user2284286


1 Answers

You can use protocol activation, if you want to make your app such that any one can open it from either explorer, run, powershell or cmd

Here's MSDN sample of protocol activation.

Here's the way to launch the app.

For run and explorer : myapp://

For cmd and power shell : explorer.exe myapp://

Moreover, read this awesome blog post, Inter-Process communication (Windows Store App & Desktop Apps) with protocol association in WinRT

like image 145
Farhan Ghumra Avatar answered Dec 08 '25 14:12

Farhan Ghumra