Thursday, December 15, 2011

Creating an Appx Package

In order to turn an application that runs in windowed mode into a full screen Metro application, I had to package it and deploy it. There are already a few places with lots of information about what's required for this, so I'll just go over the important steps I gathered from the following:

The steps I use to manually create an appx package are:
  1. Create a valid Appxmanifest.xml
  2. Package the files using makeappx.exe
  3. Sign the appx package with sign tool
  4. Use the PowerShell cmdlets to install the package to the dashboard: Add-AppxPackage, Get-AppxPackage, and Remove-AppxPackage.
I basically followed Peters guide for all of this.

Once it's running on the Desktop fullscreen, you might want to hook up a debugger. For that you need to tell it you intend on debugging. IPackageDebugSettings allows you to enable, disable, suspend, or resume debugging a package. Microsoft has provided a command line utility wrapper around this class that allows you to do this easily.

If anyone can provide me information on how to get a process (for example, a debugger after you've used IPackageDebugSettings to enable debugging) to launch a Metro app the same way Explorer does when you click it on the desktop, I'd appreciate it.

23 comments:

  1. I am so glad to be given a chance to read your wonderful article. Im looking forward to read more of your works and posts. You did a good job! Try to visit my site too and enjoy.

    triciajoy.com

    www.triciajoy.com

    ReplyDelete
  2. Lovely post! I started blogging last year, and have been doing on-going research. This sounds very helpful!
    RPG Maker MV Torrent

    ReplyDelete

  3. Packers-and-movers-bangalore.in provides all the type of #moving solutions, no matter where you want to shift into the city or shift another city or another country ..
    Packers And Movers Bangalore Charges

    ReplyDelete
  4. Hi – It’s good to read such interesting content. I agree with much of what is written here and I’ll be coming back.
    Thanks again for posting such great reading material!! To get more relevant information visit here
    Packers And Movers Gurgaon
    Packers And Movers In Gurgaon charges

    ReplyDelete
  5. I must say you had done a tremendous job,I appreciate all your efforts.Thanks alot for your writings......Waiting for a new 1...Please visit our wonderful and valuable website:
    Packers And Movers in Bangalore charges

    ReplyDelete