Wednesday, February 11, 2015

Get a developer license (Store apps


In most cases, if you want to install and test an app before you submit it to the store, you must get a developer license for each machine on which you want to run the app, or, if you are developing a Windows Phone Store app, your enterprise can side-load the app for you. Otherwise, you can run desktop apps and any apps that the Store has tested and certified, but error DEP0100 will appear if you try to build or deploy an uncertified app in Visual Studio. See What is sideloading? Does the Windows Store allow it?.
Note  Your domain administrator can configure your computer to obtain a developer license without connecting to the Internet provided that your computer meets certain requirements. See Enabling a computer to obtain a developer license without having to connect to the internet.
Developer licenses are free, and you can get as many as you need so that all your test machines have one. If you get one or more developer licenses by using a Microsoft account, you must renew them every 30 days. If you get one or more developer licenses by using a Store account, you must renew them every 90 days, and you might gain other advantages.
When you run or debug an app for the first time on a remote machine or on a device that’s directly connected to your development machine, you're prompted to download a separate developer license for that machine or device. You can't install a developer license on a machine remotely, so you must get the license by using the machine or device itself. After you install a developer license on that remote machine or device, you can install, run, and debug packages that haven't been certified. The developer license on the remote machine doesn’t affect apps that the Store has already certified or desktop apps.

Getting a developer license by using Visual Studio

When you run Microsoft Visual Studio 2013 on your local machine for the first time, you're prompted to get a developer license. Read the license terms, and then choose the I Agree button. In the User Account Control (UAC) dialog box, choose the Yes button to continue.
After you install a license on a local machine, you won’t be prompted again on that machine unless the license expires (or you remove it) and you try to run an uncertified Store app or create a project. As long as you have a developer license that hasn't expired, you can run uncertified Store apps on your local machine by choosing the F5 key in Microsoft Visual Studio or Microsoft Expression Blend.

Renewing a developer license by using Visual Studio

You can renew a developer license whenever you're using the Visual Studio IDE. If you're using Microsoft Visual Studio Express 2013 for Windows, choose StoreAcquire Developer License on the menu bar. If you're using a different version of Visual Studio 2013, choose ProjectStoreAcquire Developer License on the menu bar.

Getting a developer license at a command prompt

If you aren’t using Visual Studio 2013, you can get and manage developer licenses at a command prompt by running these commands in Windows PowerShell:
  • Show-WindowsDeveloperLicenseRegistration. This command opens a dialog box from which you can get a developer license and install it on the local machine. To run this command, you must have a valid Microsoft account. You also must run this command in a command prompt with elevated permissions.
  • Get-WindowsDeveloperLicense. This command returns an object that has two properties: ExpirationTime and IsValid. ExpirationTime is a System.DateTime structure that contains the date and time when the license expires. IsValid is a System.Boolean that indicates whether the license is valid. You can run this command from a command prompt that doesn't have elevated permissions.
  • Unregister-WindowsDeveloperLicense. This command warns you that some apps will stop working if you remove the developer license from the local machine. If you choose "Yes" (the default) to confirm that you want to remove the license, the license is removed from the local machine. You must run this command in a command prompt with elevated permissions.
The examples show the basic PowerShell syntax:
C:\PS> Show-WindowsDeveloperLicenseRegistration
C:\PS> Get-WindowsDeveloperLicense
C:\PS> Unregister-WindowsDeveloperLicense

Enabling a computer to obtain a developer license without having to connect to the Internet

If your computer belongs to a domain, your domain administrator can configure your computer to have a non-expiring developer license so that you don't have to obtain or renew a license by connecting to the Internet. Your computer must be a member of a domain and be running either of the following operating systems:
  • Windows 8.1 Enterprise.
  • Windows 8.1 Pro.
    Note  If your computer is running Windows 8.1 Pro, your administrator must activate a sideloading product key.
For more information, see How to Add and Remove Apps.

Fraudulent use of your license

Microsoft can detect fraudulent use of a developer license on a registered machine. If Microsoft detects fraudulent use or another violation of the software license terms, we might revoke your developer license. The monitoring process helps ensure the overall health of the app marketplace.
Microsoft doesn’t monitor the use of apps that the Store has certified. Microsoft collects analytics for apps that are sold in the Store and provides those analytics to the developers who created those apps. For more info, see the software license terms for your edition of Windows.
Hh974578.wedge(en-us,WIN.10).gifTo find out which edition of Windows is running on your computer
  • In Control Panel, choose System.
    The edition of Windows that you're running appears near the top of the window, under Windows edition.
Hh974578.wedge(en-us,WIN.10).gifTo read the license terms
  1. Open the drive where Windows is installed.
    This drive is often labeled (C:).
  2. Open the Windows/System32/en-US/Licenses_Default folder.
  3. Open the folder that corresponds to the edition of Windows that's installed on your machine, and then open the license.
    The license opens in a new window.

Risks

If you have a developer license, you can run Windows Store apps that haven’t been tested and certified by the Store, but you won't benefit from the protection that certification provides. A computer on which a developer license is installed might have a bigger risk of virus or malware infection than a computer that installs apps only through the Store. In other words, if you acquire and run Store apps from sources other than the Store, take the same precautions you normally do when you acquire desktop apps from the web.

No comments: