locked
How can I deploy a Metro Style App?

    Question

  • Hi,

    I could see some files are generated by VS in Debug folder If I build the solution. Now say I had these files and want to deploy the app to another Win 8 machine. What shall I do? And what does the VS "Deploy" really do?


    • Edited by A Newbie Friday, September 16, 2011 1:51 AM
    Friday, September 16, 2011 1:50 AM

Answers

All replies

  • Deploy creates an executable for the file so that they can use it. They would simply have to open the executable on their computer from the file or add it to their pin list.
    • Proposed as answer by maxhudson Friday, September 16, 2011 2:27 AM
    • Unproposed as answer by maxhudson Friday, September 16, 2011 2:27 AM
    Friday, September 16, 2011 2:12 AM
  • Deploy creates an executable for the file so that they can use it. They would simply have to open the executable on their computer from the file or add it to their pin list.


    Where is the executable file? I believe the JS Metro style app is hosted by WWAHost.exe but I'm not sure how to install/run it without the help of VS.
    I also noticed the files loaded by WWAHost locates in

    C:\Users\myname\AppxLayouts

    It seems to me the JS Metro style app is very like the old Windows Gadget. I just want to know how to deploy it manually.


    • Edited by A Newbie Friday, September 16, 2011 2:27 AM
    Friday, September 16, 2011 2:20 AM
  • Update: I guess I should have looked at Visual Studio first...

    1. Right-Click on the App in Solution Explorer
    2. Click Store -> Create App Package...

    You will need to select "Build a package to use locally only" since the "upload to the Store" option doesn't work yet as the app store is not yet live.

    -----------------------------------------------

    Here's the "Appx Pckaging API Create Package" sample. This demonstrates how to use the packaging API to package up your own apps.

    http://code.msdn.microsoft.com/Appx-Packaging-API-Create-48062876/sourcecode?fileId=42776&pathId=961581935


    Microsoft MVP - Bing Maps
    Blog: http://pietschsoft.com | Web.Maps.VE - ASP.NET AJAX Bing Maps Server Control
    Friday, September 16, 2011 3:57 AM
  • Update: I guess I should have looked at Visual Studio first...

    1. Right-Click on the App in Solution Explorer
    2. Click Store -> Create App Package...

    You will need to select "Build a package to use locally only" since the "upload to the Store" option doesn't work yet as the app store is not yet live.

    -----------------------------------------------

    Here's the "Appx Pckaging API Create Package" sample. This demonstrates how to use the packaging API to package up your own apps.

    http://code.msdn.microsoft.com/Appx-Packaging-API-Create-48062876/sourcecode?fileId=42776&pathId=961581935


    Microsoft MVP - Bing Maps
    Blog: http://pietschsoft.com | Web.Maps.VE - ASP.NET AJAX Bing Maps Server Control


    Thanks! This is exactly what I want to know!

    To be more specific, after "Build a package to use locally only" you'll be able to find something like below folder:

    PackageLocationYouSpecified\DisplayName_1.0.0.1_x86_Debug_PackageNameDefinedInpackage.appxmanifest

    In this folder you can find a batch file Add-AppxDevPackage and a appx package containing your app. By running the batch file with admin privilege you can install and pin the app.

     




    • Edited by A Newbie Friday, September 16, 2011 7:56 AM
    Friday, September 16, 2011 7:53 AM
  • I have no Batch file.  What do I do ?
    Also I don't see where is this "Build a package to use locally only"  could you lead us where it is ?

    Windows 8 RP Build 8400

    Thank you


    • Edited by GearWorld Tuesday, August 14, 2012 9:55 AM
    Tuesday, August 14, 2012 9:53 AM
  • Update: I guess I should have looked at Visual Studio first...

    1. Right-Click on the App in Solution Explorer
    2. Click Store -> Create App Package...

    You will need to select "Build a package to use locally only" since the "upload to the Store" option doesn't work yet as the app store is not yet live.

    -----------------------------------------------

    Here's the "Appx Pckaging API Create Package" sample. This demonstrates how to use the packaging API to package up your own apps.

    http://code.msdn.microsoft.com/Appx-Packaging-API-Create-48062876/sourcecode?fileId=42776&pathId=961581935


    Microsoft MVP - Bing Maps
    Blog: http://pietschsoft.com | Web.Maps.VE - ASP.NET AJAX Bing Maps Server Control

    I have just done as above steps. The outputs contains .ps1 appx file.

    But i don't know how to install them by c++/c#. Because my apps contain both normal app and window metro app.

    Wednesday, November 7, 2012 11:38 PM
  • In window 8 pro build 9200.

    Visual create file .ps1, appx. But i don't know how to use them to install programatically.

    Wednesday, November 7, 2012 11:47 PM
  •    Facing same problem, not finding "Build a package to use locally only" while creating package and no batch file.

       Please suggest solution to deploy app locally and steps to test app in diffrent Windows 8 machine

    Friday, December 28, 2012 11:17 AM
  • I hit here when I was searching way to manually deploy windows store app on another machine. I found the way and sharing below which might help others.

    After a package is created in vs express 2012 using Store-> Create App Packages,  find directory with name of of this kind. 

    ..\proj\apppackages\<appname>-<version>-xxx>\

    goto this directory. it has Add-AppDevPackage.ps1 file and <packagename>.appx file

    to install app on other machine,

    1. share this directory.

    2. on other machine launch your powershell cmdshell elevated, goto this directory and run the .ps1 file

    3. app is installed.

    other useful references:

    1. powershell cmdlets to install appx packages http://technet.microsoft.com/en-us/library/hh856048.aspx http://msdn.microsoft.com/en-us/library/windows/apps/hh446592.aspx


    -sushil

    Saturday, February 23, 2013 5:01 AM
  • This thread is very out of date and includes instructions for early previews of Windows 8. It is not applicable to the RTM version of Windows 8.

    For released versions of Windows 8 please see   Sharing an app package locally .

    --Rob

    Saturday, February 23, 2013 5:18 AM
    Owner