46

For a customer I need a to present our Windows 8 Metro App. When I deploy my solution or project, I get a exe but I can't install it. I get a MessageError, that I can only start the exe in a app container.

How can I create a version of my application to give it to my customer without loading it up to the Microsoft Store?

Kirill Kobelev
  • 10,252
  • 6
  • 30
  • 51
Matapolo
  • 667
  • 1
  • 6
  • 12

1 Answers1

40

Use the PowerShell cmdlet add-appxpackage. For example:

add-appxpackage C:\myapp.appx

See http://blogs.msdn.com/b/uk_faculty_connection/archive/2012/04/03/installing-enterprise-metro-apps-without-using-microsoft-store.aspx for more info.

akton
  • 14,148
  • 3
  • 43
  • 47
  • 1
    How do i get .appx package ? – hendrix May 20 '13 at 11:10
  • 2
    @smitalm If you create a Windows Store app under Visual Studio 2012, it will produce a .appx file. See http://msdn.microsoft.com/en-us/library/hh446593(v=vs.85).aspx for more information on Windows Store apps in general. – akton May 20 '13 at 13:34
  • 4
    Thank you, i already solved it. Here is how i got .appx package: Visual Studio 2012 -> Project -> Store -> Create app packages. I copied generated package to my Windows 8 tablet. In generated folder, there was 'Add-AppDevPackage.ps1' PowerShell script, which executed on tablet, and app was installed. During the process i needed administrator privileges, and my Windows Live Developer credentials. – hendrix May 20 '13 at 14:41
  • 1
    is it possible ***silent installation*** in another machine? – Kiquenet Apr 29 '15 at 07:31
  • In my case it throws an error about root certificate. I'm on Windows 8.1 Embedded. – VELFR Sep 19 '18 at 05:08