Your instruction don't work so easy as you descripted - have you test it on a fresh installation ?
First: Your Hearts.zip / Hearts.appx don't work - I got this error:
Code:
PS C:\> add-appxpackage C:\Hearts.appx
add-appxpackage : Deployment failed with HRESULT: 0x80073CF0, Package could not be opened. (Exception from HRESULT:
0x80073CF0)
error 0x8007000B: Opening the package from location file:///C:/Hearts.appx failed.
NOTE: For additional information, look for [ActivityId] 081697a6-af7a-0000-859d-16087aafcd01 in the Event Log or use
the command line Get-AppxLog -ActivityID 081697a6-af7a-0000-859d-16087aafcd01
At line:1 char:1
+ add-appxpackage C:\Hearts.appx
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (C:\Hearts.appx:String) [Add-AppxPackage], FileNotFoundException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand Perhaps it is a wrong version from Release Preview ? I test with Windows 8 RTM.
--------------------------------------------------------------------------
Second: With your instructions I downloaded two games (Microsoft Mahjong and Mineweeper, each more than 100 Mb). Then I uninstall them and tried your command:
add-appxpackage C:\Minesweeper.appx
add-appxpackage C:\Mahjong.appx
And they installed correctly.
--------------------------------------------------------------------------
Third: I tried the commands on an other installation where these games not downloaded before.
I got this error:
Code:
PS C:\> add-appxpackage C:\Mahjong.appx
add-appxpackage : Deployment failed with HRESULT: 0x80073CF3, Package failed updates, dependency or conflict
validation. (Exception from HRESULT: 0x80073CF3)
Windows cannot install package Microsoft.MicrosoftMahjong because this package depends on another package that
couldn't be found. This package requires minimum version 11.0.50727.1 of framework Microsoft.VCLibs.110.00 published
by any publisher to install; the frameworks with name Microsoft.VCLibs.110.00 available to the user are
Microsoft.VCLibs.110.00_11.0.50712.1_x86__8wekyb3d8bbwe Microsoft.VCLibs.110.00_11.0.50712.1_x64__8wekyb3d8bbwe.
Provide the correct framework along with this package.
NOTE: For additional information, look for [ActivityId] 081697a6-af7a-0000-a801-17087aafcd01 in the Event Log or use
the command line Get-AppxLog -ActivityID 081697a6-af7a-0000-a801-17087aafcd01
At line:1 char:1
+ add-appxpackage C:\Mahjong.appx
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\Mahjong.appx:String) [Add-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand Because of the missing "frameworks" I downloaded "Minesweeper" from Store. After this Mahjong installs fine with no error. So I think the installation of "Minesweeper" from Store has installed also the missing "frameworks".
--------------------------------------------------------------------------
Fourth: But Mahjong don't start. When I click the tile on start menu I got this error:
Code:
This app can't open
Check the Windows Store for more info about Microsoft Mahjong
When I go to Store I get this hint:
Code:
This app needs to be repaired
There's a problem with Microsoft Mahjong. Windows Store can try to repair the app for you.
When I choose "repair" Windows downloads then the app again and installs it again.
--------------------------------------------------------------------------
Conclusion:
- So I think the only benefit from your instruction is that I can backup an app which I have installed before from Store on the same installation.
- And I cannot transfer an app from one installation to an other installation (because of "missing frameworks" and "must repair")