How to change Visual Studio 2017 License Key? - visual-studio

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, 2019 and 2022.
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 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
09660 Visual Studio Enterprise 2022
09662 Visual Studio Professional 2022
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
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;
Update (2021-12-03)
added MPCs for Visual Studio 2022;

For VS 2019 the registry key is:
HKEY_CLASSES_ROOT\Licenses\41717607-F34E-432C-A138-A3CFD7E25CDA

For VS 2015, a key is
HKEY_CLASSES_ROOT\Licenses\4D8CFBCB-2F6A-4AD2-BABF-10E28F6F2C8F
for what it's worth...

can't write comments so I give you this in the form of an answer, hoping #ChW will incorporate it in his winning answer:
Removing product key first and set new one. (VS 2022)
open registry editor
navigate to
VS 2022: HKEY_CLASSES_ROOT\Licenses\1299B4B9-DFCC-476D-98F0-F65A2B46C96D and delete it
execute a repair installation of VS 2022
enter your new product key under Help > Register Product

MPCs for VS 2019.
Visual Studio Enterprise 2019 09260
Visual Studio Professional 2019 09262
https://learn.microsoft.com/en-us/visualstudio/install/automatically-apply-product-keys-when-deploying-visual-studio?view=vs-2019

MPCs for VS 2022
Visual Studio Enterprise 2022 09660
Visual Studio Professional 2022 09662
https://learn.microsoft.com/en-us/visualstudio/install/automatically-apply-product-keys-when-deploying-visual-studio?view=vs-2022

Related

Visual Studio 2015 vdproj file into Visual Studio 2022

I'm migrating a Visual Studio 2015 solution to Visual Studio 2022. The solution includes a "Setup and Deployment" vdproj project and Studio 2022 says it is incompatible. Is there an Add-in that I need? How can I bring in the existing (2015) installation project?
You can download an official Microsoft extension that provides support for Visual Studio Installer Projects in Visual Studio 2022.
Microsoft Visual Studio Installer Projects 2022

How to have separate recent projects and solutions list for Visual Studio 2017 and 2019?

My laptop has Windows 7 64-bit operating system. I have both Visual Studio Community 2017 and Visual Studio Community 2019 installed.
I am seeing that the recent projects and solutions list is shared between Visual Studio Community 2017 and Visual Studio Community 2019.
For example:
I open Visual Studio Community 2017, open a solution named
A_2017, work on it, close it and finally close Visual Studio Community 2017.
Then I open Visual Studio Community 2019, open a solution named
B_2019, work on it, close it and finally close Visual Studio Community 2019.
Now I open Visual Studio Community 2017 again and check the Recent
Projects and Solutions list and I see B_2019 as the first entry
in there although I never opened that solution with Visual Studio Community 2017.
Is it possible that recent projects and solutions list is not shared among different versions of Visual Studio? If yes please show how.
Thanks
Finally I settled with a work around. For Visual Studio 2019, I installed this extension from the marketplace https://marketplace.visualstudio.com/items?itemName=Danielku15.BetterStartPage2019
And created a group for VS 2019 projects and then added 2019 projects to that group.
This extension also has a version for Visual Studio 2017 as well.

How to downgrade visual studio 2017 to 2015

I uninstalled visual studio 2015 to make way for 2017 but 2017 is not supporting xamarin.winphone so I would like to downgrade it to visual studio 2015 so that it supports xamarin winphone
I tried to find options to downgrade but I couldn't find any
My question is partly in relation with my earlier question
Thanks
Visual Studio 2015 can co-exist with visual Studio 2017. Since you have install Visual Studio 2015, and just start it from
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe"
Sure, create shortcut on your desktop for your next time......

How can I enable template 10 in Visual Studio community 2017 RC?

If I download from https://github.com/Windows-XAML/Template10/wiki
and open the template 10 solution in Visual Studio Community 2017 RC, it does not work.
Is it complicated to make it work easily or shall I download vs 2015?
Thanks.
Currently there is no Template 10 extension for Visual Studio 2017, only Visual Studio 2015. As a short-term work around until the Visual Studio 2017 extension is released, you can create your project in Visual Studio 2015 using the Template 10 extension and then open it in Visual Studio 2017 to develop it. There will likely be no Template 10 extension for Visual Studio 2017 until it is RTM. As of this moment, Visual Studio 2017 is Release Candidate version 5 and it is wonderful. I can assure you, since I am the author of Template 10, that Visual Studio 2017 will be fully supported # RTM. https://www.visualstudio.com/vs/visual-studio-2017-rc/
https://marketplace.visualstudio.com/items?itemName=jerry-nixon.Template10TemplatePack
VS2015 should be just fine... VS2017RC will not work....

How to develop VSPackages in Visual Studio 2015 RC

I have installed Visual Studio 2015 RC SDK on my machine.
I don't have Visual Studio Package template when creating a new project. This is the screen shot of Visual Studio 2015 RC
As you can see no templates for Visual Studio Package.
This is the screen shot of my Visual Studio 2013:
Question
How to develop VSPackages in Visual Studio 2015 RC?
NOTE
I already have Visual Studio 2015 RC SDK installed.
In VS 2015, you start with a VSIX project, and then add Items, like for example a VSPackage - see http://blogs.msdn.com/b/visualstudio/archive/2015/05/29/extending-visual-studio-2015.aspx

Resources