问题描述
我想在Visual Studio 2017中删除我的许可证密钥.我该怎么做?我正在尝试更改产品密钥,但我不能.
我发现了 Visual Studio 2013、2015、2017 和 2019 的两种可能的解决方案. >
1.使用StorePID.exe
设置新产品密钥("MS文档" ).
- 导航到VS 2017/2019安装目录(
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE
) - 以管理员身份启动
cmd
- 执行
StorePID.exe <your_new_product_key> <MPC>
- 也许是重启
可能的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)
- 打开寄存器编辑器
- 导航至
- 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
并将其删除
- VS 2015:
- 执行VS 2017/2019的修复安装
- 在帮助">注册产品"下输入新产品密钥
这不是解决问题的最佳方法,但是比卸载并安装完整的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).
- navigate to VS 2017/2019 installation directory (
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE
) - start
cmd
as admin - execute
StorePID.exe <your_new_product_key> <MPC>
- maybe a restart
Possible Microsoft Product Codes (MPC) are:
06177
Visual Studio Professional 201306191
Visual Studio Premium 201306181
Visual Studio Ultimate 201307062
Visual Studio Professional 201507060
Visual Studio Enterprise 201508860
Visual Studio Enterprise 201708862
Visual Studio Professional 201708866
Visual Studio Test Professional 201709260
Visual Studio Enterprise 201909262
Visual Studio Professional 2019
2. Removing product key first and set new one. (VS 2015/2017/2019)
- open register editor
- 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
- VS 2015:
- exeute a repair installation of VS 2017/2019
- 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许可证密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!