本文介绍了如何更改Visual Studio 2017许可证密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Visual Studio 2017中删除我的许可证密钥.我该怎么做?我正在尝试更改产品密钥,但我不能.

解决方案

我发现了 Visual Studio 2013、2015、2017 2019 的两种可能的解决方案. >

1.使用StorePID.exe设置新产品密钥("MS文档" ).

  1. 导航到VS 2017/2019安装目录(C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE)
  2. 以管理员身份启动cmd
  3. 执行StorePID.exe <your_new_product_key> <MPC>
  4. 也许是重启

可能的Microsoft产品代码(MPC)是:

  • 06177 Visual Studio 专业 2013
  • 06191 Visual Studio Premium 2013
  • 06181 Visual Studio 最终版本 2013
  • 07062 Visual Studio 专业 2015
  • 07060 Visual Studio Enterprise 2015
  • 08860 Visual Studio Enterprise 2017
  • 08862 Visual Studio 专业 2017
  • 08866 Visual Studio Test Professional 2017
  • 09260 Visual Studio Enterprise 2019
  • 09262 Visual Studio 专业 2019

2.首先移除产品密钥并设置新密钥. (VS 2015/2017/2019)

  1. 打开寄存器编辑器
  2. 导航至
    • VS 2015:HKEY_CLASSES_ROOT\Licenses\4D8CFBCB-2F6A-4AD2-BABF-10E28F6F2C8F并将其删除
    • VS 2017:HKEY_CLASSES_ROOT\Licenses\5C505A59-E312-4B89-9508-E162F8150517并将其删除
    • VS 2019:HKEY_CLASSES_ROOT\Licenses\41717607-F34E-432C-A138-A3CFD7E25CDA并将其删除
  3. 执行VS 2017/2019的修复安装
  4. 在帮助">注册产品"下输入新产品密钥

这不是解决问题的最佳方法,但是比卸载并安装完整的IDE更快.


更新(2020-01-09)

  • 添加了适用于Visual Studio 2013、2015和2019的MPC;
  • 扩展了VS 2019的注册表解决方案;

I want to remove my license key in visual studio 2017.how can i do it?I am trying to change the product key but I cant.

解决方案

Well I found two possible solutions for Visual Studio 2013, 2015, 2017 and 2019.

1. Setting new product key with StorePID.exe (MS Docs).

  1. navigate to VS 2017/2019 installation directory (C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE)
  2. start cmd as admin
  3. execute StorePID.exe <your_new_product_key> <MPC>
  4. maybe a restart

Possible Microsoft Product Codes (MPC) are:

  • 06177 Visual Studio Professional 2013
  • 06191 Visual Studio Premium 2013
  • 06181 Visual Studio Ultimate 2013
  • 07062 Visual Studio Professional 2015
  • 07060 Visual Studio Enterprise 2015
  • 08860 Visual Studio Enterprise 2017
  • 08862 Visual Studio Professional 2017
  • 08866 Visual Studio Test Professional 2017
  • 09260 Visual Studio Enterprise 2019
  • 09262 Visual Studio Professional 2019

2. Removing product key first and set new one. (VS 2015/2017/2019)

  1. open register editor
  2. navigate to
    • VS 2015: HKEY_CLASSES_ROOT\Licenses\4D8CFBCB-2F6A-4AD2-BABF-10E28F6F2C8F and delete it
    • VS 2017: HKEY_CLASSES_ROOT\Licenses\5C505A59-E312-4B89-9508-E162F8150517 and delete it
    • VS 2019: HKEY_CLASSES_ROOT\Licenses\41717607-F34E-432C-A138-A3CFD7E25CDA and delete it
  3. exeute a repair installation of VS 2017/2019
  4. enter your new product key under Help > Register Product

It's not the best way to solve it, but faster than deinstall and install the complete IDE.


Update (2020-01-09)

  • added MPCs for Visual Studio 2013, 2015 and 2019;
  • extended registry solution for VS 2019;

这篇关于如何更改Visual Studio 2017许可证密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 17:51