如何更改 Visual Studio 2017 许可证密钥? [英] How to change Visual Studio 2017 License Key?
本文介绍了如何更改 Visual Studio 2017 许可证密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在 Visual Studio 2017 中删除我的许可证密钥.我该怎么做?我正在尝试更改产品密钥,但我不能.
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.
推荐答案
嗯,我找到了 Visual Studio 2013, 2015, 2017, 2019 和 2022 两种可能的解决方案.
Well I found two possible solutions for Visual Studio 2013, 2015, 2017, 2019 and 2022.
1.使用 StorePID.exe
设置新产品密钥 (MS Docs).
1. Setting new product key with StorePID.exe
(MS Docs).
- 导航到VS 2017/2019安装目录(
C:Program Files (x86)Microsoft Visual Studio2017EnterpriseCommon7IDE
) - 以管理员身份启动
cmd
- 执行
StorePID.exe <your_new_product_key><MPC>
- 可能会重新启动
可能的 Microsoft 产品代码 (MPC) 有:
Possible Microsoft Product Codes (MPC) are:
06177
Visual Studio 专业版 201306191
Visual Studio 高级版 201306181
Visual Studio 终极版 201307062
Visual Studio 专业版 201507060
Visual Studio 企业版 201508860
Visual Studio 企业版 201708862
Visual Studio 专业版 201708866
Visual Studio Test Professional 201709260
Visual Studio 企业版 201909262
Visual Studio 专业版 201909660
Visual Studio 企业版 202209662
Visual Studio 专业版 2022
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 201909660
Visual Studio Enterprise 202209662
Visual Studio Professional 2022
<强>2.首先删除产品密钥并设置新的.(对比 2015/2017/2019)
- 打开注册编辑器
- 导航到
- VS 2015:
HKEY_CLASSES_ROOTLicenses4D8CFBCB-2F6A-4AD2-BABF-10E28F6F2C8F
并删除 - VS 2017:
HKEY_CLASSES_ROOTLicenses5C505A59-E312-4B89-9508-E162F8150517
并删除 - VS 2019:
HKEY_CLASSES_ROOTLicenses41717607-F34E-432C-A138-A3CFD7E25CDA
并删除 - VS 2015:
HKEY_CLASSES_ROOTLicenses4D8CFBCB-2F6A-4AD2-BABF-10E28F6F2C8F
and delete it - VS 2017:
HKEY_CLASSES_ROOTLicenses5C505A59-E312-4B89-9508-E162F8150517
and delete it - VS 2019:
HKEY_CLASSES_ROOTLicenses41717607-F34E-432C-A138-A3CFD7E25CDA
and delete it - 执行 VS 2017/2019 的修复安装
- 在帮助"下输入您的新产品密钥 >注册产品
- 为 Visual Studio 2013、2015 和 2019 添加了 MPC;
- VS 2019 的扩展注册表解决方案;
- 为 Visual Studio 2022 添加了 MPC;
这不是最好的解决方法,但比卸载并安装完整的 IDE 更快.
It's not the best way to solve it, but faster than deinstall and install the complete IDE.
这篇关于如何更改 Visual Studio 2017 许可证密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文