Switch Visual Studio 2010 License keys - visual-studio-2010

I have used one license key and want to switch my configuration to use another key.
I tried to launched the uninstall wizard from "Add/Remove Programs" in the Windows Control Panel. When I reinstalled, the license still work.
How can I modify my Visual Studio 2010 installation to use another key, and possibly without uninstalling and reinstalling?
Sorry for not clarifying it at the beginning. Actually, a valid key is not available to me for now. Is there a way to remove the original license completely and use VS as a trial version for days.

Change the serial number after Visual Studio 2010 installation
Go to Control Panel -> Programs and Features, locate and highlight Microsoft Visual Studio 2010 Ultimate/Premium/Professional installation, and click on Uninstall/Change button.
Upgrade Visual Studio 2010 Product Key for Activation
A Visual Studio setup maintenance screen should be shown. After clicking Next button, an option to enter a valid serial number to upgrade product license is available.
Enter the upgrade key accordingly, and click on Activate button. No re-installation required.

There is a way to edit the product key in a file called Setup.SDB. It should be located in
\Program Files (x86)\Microsoft Visual Studio 10.0\Microsoft Visual Studio 2010 Professional - ENU\Setup.SDB
Edit this file in a notepad and search for Product key. You can then update the product key.
I actually repaired the installation after this change just to make sure everything was working. This was tested on VS2008 and VS2010

Related

How to update Visual Studio 2015?

I recently installed Microsoft Visual Studio community verion 2015 on my computer for educational purposes. However while installation I conservatively chose not to install the source files for C/C++. Is there any way to rectify this? There doesn't seem to be any update menu in Visual Studio where I can do this.
You can have Visual Studio check for any updates itself by going to Tools > Extensions & Updates > Updates > Product Updates.
You can install any of the custom components (Visual C++, Visual F#, others) later if you don’t select them during the initial setup, there have some methods to modify VS to select the custom components to update and you can have a look at the following:
Go to Control Panel—Programs and Features, right click the Visual Studio Community 2015 with updates and Change, it popups the VS installer windows and click Modify button, then you can find the option ‘Visual C++’ under Programming Languages and check it, click ‘Next’ button to install it like the following screenshot.
If you still store the installer file of the Visual Studio Community 2015 with update 3 on your computer, right click it and run it as administrator, click Modify button and you can find the same installer windows as the above, check the option ‘Visual C++’ to install it.

Microsoft Visual Studio 2010 Professional - Trial Extension

I had a trial of Visual Studio 2010 running, but now I've run out of days. When I try to extend the trial it sends me to the Ultimate version for the key extension. I signed up there and everything and got a code, but when I insert it in Visual Studio 2010 it says the code is invalid.
How do I succesfully get a Professional trial key extension?
P.S. The site is also in Japanese for me, which makes it even more difficult.
You can get the correct key by doing the following:
Go to Control Panel -> (Un)Install software;
Browse to your Visual Studio 2010 install and click Remove/Change;
The Visual Studio Maintenance Mode Wizard will load, wait a little and click next when it's done;
On the bottom left of the window you will see a the "Extend Trial" option. When you click this link it will guide you to the correct website. Which is currently: go.microsoft.com/fwlink/?LinkID=133426
Sign up with your Microsoft account and apply for the trial extension;
Wait for the mail Microsoft sent you and use the provided key the extend your trial. (This code should work!)

Marmalade Visual Studio Setup

I was having license errors with the latest Marmalade (6.4) and I reran s3eConfig to fix them. I set it to use Visual Studio 2010 and it re-setup marmalade and the license errors went away. However it is not respecting my Visual Studio selection and always opens Visual Studio 2012.
So, my question is where does marmalade hide these config values that you set when running s3eConfig? It looks like I will have to change it manually.
Marmalade saves these values in AppData. But instead of modifying these values, you can just right click on the mkb and open them in your desired IDE disregarding the default ones.
I guess the Visual Studio 2012 is the phone version(wp8). Marmalade has a bug regarding this, don't remember the MAINT number/bug issue tracking number.

How do you remove/uninstall Add-Ins for Visual Studio if they are broken?

I had EntitySpaces Add-in for Visual Studio (all versions) installed. Upon uninstalling it, when you start up any version of Visual Studio, you get the message "could not rename add-in file". How do you get rid of this or stop Visual Studio from trying to load the Add-In?
It appears this can be a common problem when applications that install Add-Ins or just Add-Ins on their own, don't uninstall properly or just plain break.
For Visual Studio 2015 you have to:
Click on Tool -> Extensions and Updates.
Be sure that Installed option is selected in left part of the window.
Find your addin, select it and click on Uninstall button.
Restart Visual Studio.
There are a few helpful articles which may be useful for your particular Add-In:
http://www.mztools.com/articles/2006/mz2006018.aspx
First of all I tried this (which may work for you) How to: Deactivate and Remove an Add-In.
Note if you don't know the Namespace or ClassName of the addin, you can find it in the .addin file under FullClassName:
To remove an add-in from the integrated development environment (IDE)
Delete the .addin XML registration file for the add-in that you want
to remove. The default location is ..\Users\username\ Documents\Visual
Studio 2010\Addins\
At a Visual Studio command prompt, type devenv
/resetaddin Namespace.ClassName, where Namespace is the name of your
add-in project and Classname is its class name, for example, devenv
/resetaddin MyAddin1.Connect
For me this, although not my exact problem, lead to my resolution, which was simply to run Visual Studio as administrator. Doing this for just one version of Visual Studio solved my problem in that the error message no longer appeared (probably because it was then able to successfully rename as per the original error message).
In Visual Studio 2019, Click on Extensions tab. Then click on Manage Extensions. In the window that opens,select Installed in the left pane. After that search for the Add-in you want to remove. In the results displayed, select the Add-in the hit UNINSTALL. Restart Visual Studio for the process to be completed. The process seems to work for any Add-in.

Visual Studio 2012 "Invalid license data. Reinstall is required"

I have a newly built Windows 8 VM with VS 2012 Premium running on it, when I try open any sln file I get the following modal pop up error
Visual Studio 2010 Shell
Invalid license data. Reinstall is required.
I can open the sln's if I open up VS and then do project open, this is really annoying, any ideas how I fix it?
*Note I have done a VS repair and it didn't solve it...and I never had any VS RC release on the machine, all new build with s/w downloaded from the MSDN
Cheers
I encountered the same exact error when I created a solution with a full version of Visual Studio 2012 Professional on one machine and then tried to open the solution file with a copy of Visual Studio 2012 Express on a different machine. I got the error when double-clicking the solution file, but not when loading the solution into an already opened instance.
I fixed the error by opening the solution file (.sln) with notepad and changing the line that says Visual Studio 2012 to say Visual Studio Express 2012 for Windows Desktop.
After that, I was able to double-click to open the solution file on the machine that has Express installed.
I'm using VS 2013. I fixed this by right clicking the .sln and setting the Open With parameter to visual studio 2013 and not VS version selector or VS 2010.
I have faced the same problem. When I set the system Date and Time to the current Date and Time, The Problem solved by itself.
It looks like the .sln extension is owned by "Visual Studio 2010 Shell" a minimal version of Visual Studio that ships with products like SQL Server and Office to provide support for add-in development without any other features. Since this is a minimal version, it's unable to load any project type that ships with Visual Studio Express, Professional or above.
The same may happen when you have Visual Studio Express installed next to a full version of Visual Studio.
This may happen when you install an older version of Office or SQL Server after having installed Visual Studio. The old installer will hijack the extension.
To repair this problem:
use the "Open With" option of Windows and select the "Visual Studio Version Selector" as your default action.
Or open the "Default Programs" option in Windows, look up the .sln extension and make sure it uses the "Visual Studio Version Selector" as default:
Or locate Visual Studio 2012 in the Programs and Features window of Windows and chose "Change", the Visual Studio installer will pop up, chose "Repair" to have it repair the file associations and any other problems that may arise by installing Visual Studio versions in reverse order (it may for example mess up the MsBuild directory as well).
Remember that when Visual Studio 2010 was released, it could not yet know what Visual Studio 2012 would change, as such, it's best to install versions of Visual Studio in the order they were released. This may sometimes prove difficult, as other products may install Visual Studio versions without you knowing.

Resources