Windows Store Development Tips and Tricks-8 : Installing Packages Through PowerShell

Windows Store Application packages (.appx) can also be installed through PowerShell.


Here's what you need to do first:

I assume you've already created and built your solution. Right-click on your project and select "Store->Create App Packages..."


img1.png

After clicking on this menu item, a new window will display:

img2.png

It asks us if we want to upload this app to Windows Store. Select No and click Next to continue.

The next Window tells us more about our app build configurations, versioning and where the package will be created on your hard drive:

img3.png


After you did everything, Click Create and it will first build the application and then an output window will appear reporting the output is created:

img4.png

It also suggests (which I also suggest!) to run "Windows App Certification Kit", this small kit controls your package, if it passes certification (a set of tests including; performance,Windows Store Certification rules and guidelines).

Click OK to exit.

Now, go to the output folder which this window generated lately.

Do you see a file with an extension ".ps1":

img5.png


This is a PowerShell Script, just run it with PowerShell (it contains dozens of PS Scripts to install a package):

img6.png

Write "Y" or click Enter to start installation:

img7.png

The installation has begun, a PowerShell-like "ProgressBar" counts to complete the task.

And here we are:

img8.png

Installation completed! Press Enter and exit here.

Now when I look at the Metro (Modern) UI, I see my app "SehirlerTesti" there!

img9.png


Hope that helps!

Up Next
    Ebook Download
    View all
    Learn
    View all
    Araf Global is a software consultancy company founded in 2016 focusing on cutting edge technologies.