Saturday, September 21, 2013

how to sideload a metro app in Win8.1

You can only sideload apps on Windows 8.1 Enterprise edition (or on Windows 8.1 Pro and Windows RT devices by installing a special sideloading product key on the device).

Acquire a sideloading product key
Type the following command into the PowerShell window, press Enter, and agree to the license:

Show-WindowsDeveloperLicenseRegistration

After acquiring a developer license, you can run the following command in a PowerShell window to sideload a Modern application:

Add-AppxPackage C:\example.appx

You’ll need to purchase a “sideloading product activation key” from Microsoft. Microsoft directs people interested in purchasing these keys to their Volume Licensing page.

If you’ve acquired a sideloading product key, you must open a Command Prompt window with administrator access and add it with the following command, where ##### is the 25-digit key:

slmgr /ipk #####

After adding the key, type the following command exactly to activate the sideloading key:

slmgr /ato ec67814b-30e6-4a50-bf7b-d55daf729d1eappx

Enable sideloading on Win8.1 Enterprise EditionThere are additional requirements: the target computer must be joined to the corporate domain (unless you have installed a sideloading product key), the Group Policy setting "Allow all trusted apps to install" must be enabled; and the app must be signed by a trusted code-signing certificate

You must enable sideloading in Group Policy. This setting can be enabled on your domain or on your local computer.
For example, to enable this option on your local computer, press the Windows key, typegpedit.msc, and press Enter. Navigate to the Computer Configuration\Administrative Templates\Windows Components\App Package Deployment folder in the Group Policy editor.

Double-click the Allow all trusted apps to install option and set it to Enabled.







If you’ve satisfied all the requirements, you can sideload Modern apps by running the following cmdlet in a PowerShell window:
Add-AppxPackage C:\example.appx

No comments: