locked
Upgrading a Metro app

    Question

  • We have several OEM's that are testing our Metro app for inclusion in the upcoming release of Windows 8.  We are trying to figure out a way to do simple upgrades as we release new versions.  This is for beta testing and not when Windows 8 is GA.  Does anyone know of a simple way to upgrade the app?  Some food for thought:

    - if the app is already installed, does running the batch file for the new version automatically upgrade the app?

    - if not, is there a way to programmatically uninstall the app?


    Bret Zarkiewicz

    Thursday, May 24, 2012 1:44 PM

All replies

  • #1 if the app is already installed, does running the batch file for the new version automatically upgrade the app?

    Batch file?

    #2 programmatically uninstall the app

    The Powershell cmdlet Remove-AppxPackage will uninstall a package. You can programmatically invoke that from a desktop app (e.g. spawning powershell.exe with the appropriate command line).


    The architect must be a prophet...a prophet in the true sense of the term...if he can't see at least ten years ahead don't call him an architect - Frank Lloyd Wright Howard Kapustein [MSFT] -- Looking for the Spike... [http://blogs.msdn.com/b/howardk/]

    Monday, May 28, 2012 8:23 PM
  • When you build a local package, there is a batch file you run to install your Metro app.

    Bret Zarkiewicz

    Tuesday, May 29, 2012 2:31 PM