Tuesday 31 July 2012

Installing a Windows 8 App Package

My previous article was about creating an app package which is extremely easy to do. This article is about how to install it, which is a bit more tricky.


1. A package can be installed on a developer licensed machine. If you don't already have a dev license, one can be obtained through an installation of VS2012 or by running a  PowerShell script. This article covers more on  PowerShell , but this MS article covers getting a license:


http://msdn.microsoft.com/en-us/library/windows/apps/hh974578.aspx


2. First installation step is to run PowerShell in admin mode. To do this from the start page, simply type 'powershell' and it will appear:




3. Right-click the PowerShell icon and the app menu will appear:




4. Select 'Run as Administrator', a UAC prompt will appear, click 'Ok' and the PowerShell console will appear.


5. If you haven't run  PowerShell  script before, script need enabling by entering the 'Set-ExecutionPolicy unrestricted' command:



6. Type 'y + enter' and the policy will be applied. Now the package can be installed.

7. Change the path to the app location and type the name or the installation script, in this case it was 'Add-AppDevPackage.ps1'. Press enter and the installation will begin (the above picture show all these steps).

8. A new Powershell console will appear prompting you to confirm the installation type 'y + enter' to install:


9. The console will now close an return to the previous one, which will finish off the procedure:







Creating a Windows 8 Metro App Package

The following procedure shows how to create a Windows 8 Metro App Package. The next article will be the more complicated procedure to install it!

1. With your solution open in VS2012 or 2011, Pick Store->Create App Package... from the toolbar menu:


2. A dialogue box will appear asking if you want to upload it to the store, I've selected no because it's just for testing:


3. Click Next and another dialogue will appear with the packaging options. It let's you change things like version and build configuration:


4. Click 'Create' and the package will be created. Easy: