Copying visual studio 2010 installed extensions options to another computer - visual-studio

I have visual studio 2010 installed and configured with some extensions at my home computer. Now i want to copy all installed extensions settings from my home computer to work computer, how can i do that?
I can copy visual studio settings via import/export dialog but this not work for extensions settings.

I would look in this directory
%USERPROFILE%\AppData\Local\Microsoft\VisualStudio\10.0\Extensions
That is where the extensions are stored, copy that to your new PC.
I'm not sure if this will work 100% but you can give it a shot.

Visual studio extension settings are stored in the registry:
HKCU\Software\Microsoft\VisualStudio\<version>\DialogPage\<extension>
if they implement the default extension settings mechanism.
Otherwise you'll have to go to the individual extension website to see where they store their settings.

It is under one of the directories in AppData\Local\Microsoft_Corporation. Each extension has a user.config file stored.

For VS 2013 you can find them by this (not sure if this also works for VS 2010 but maybe it helps someone):
var config1 = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);
MessageBox.Show("Config path: " + config1.FilePath);

Related

How to rename Visual Studio

I just downloaded Visual Studio and the name is showing like this "Visual Studio Community 2017 (2)". Everything is working but that "2" at the end is just annoying. And of course first thing I've tried was reinstalling. Anyone can help me with this? Thanks in advance.
Screenshot of how it looks
And by the way my computer is completely new and I've never had Visual Studio installed on this computer.
The issue is that the instance of visual studio has a nickname associated with it. Use the following instructions to change the nickname of an existing Visual Studio (tested with VS2017) installation (partially lifted from https://developercommunity.visualstudio.com/content/problem/99059/not-able-to-easiliy-change-installation-nickname.html):
Set the nickname in the *.isolation.ini files in
%ProgramFiles(x86)%\Microsoft Visual
Studio\2017\[Version]\Common7\IDE.
Set the nickname in the state.json file in
%ProgramData%\Microsoft\VisualStudio\Packages\_Instances\[InstanceId]\state.json
Open regedit, go to under path
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall, find there "Visual Studio {your version} 2017 (2)". Rename string to be without " (2)" - this will change application name appearance in control panel / program and features.
You'll need admin permission to modify these files. If you want to remove the nickname altogether, just set it to an empty string (e.g. Nickname= in the .ini files, "nickname": "" in the .json).
Note that this will only have affect within VS tools, such as the VS installer in the screenshot you posted. Any names with the suffix in, for example, the Start/Windows menu will need to be renamed manually.
If you don't want to mess up with any files on you file system, one alternative is to reinstall the product.
After you uninstall the annoying product with the nickname "(2)", you can select the Installation locations tab and specify another nickname or perhaps leave it blank. Mine does not allow to leave it blank.
Here is a screen:
If the installer says that a nickname is mandatory, even after uninstalling Visual Studio (like in the screenshot by Bernardo above), you can try the InstallCleanup.exe tool by Microsoft. You can find it in your Visual Studio Installer folder.
After running this tool with the -i flag, I was able to re-install Visual Studio 2019 without a nickname.
Link to InstallCleanup.exe docs
A nickname is mandatory for the Visual Studio installation when you are installing the same version of Visual Studio(eg.: VS 2019 or 2022) but with different editions(eg.: VS Community or Professional or Enterprise).
If we uninstall the same version of VS with different edition, then the VS Installer is not asking for the nickname and not taking the nickname as 2, the "Installation nickname" textbox is not visible under Installation locations tab in VS Installer.

Change default Windows installer location in Visual Studio

I'm modifying a Windows installer in Visual Studio 2008 (Visual Basic I believe, what my company's currently using) and I want to change the default install "Folder" of the program (the name of the directory). I've attached an image
to show what I mean. "Folder" defaults to "C:\Program Files (x86)\foo\" and I want it to default to "C:\Program Files (x86)\bar\" instead every time the installer is run. I feel like I've gone through just about every menu/item in the install directory and everywhere I can find, done my online research, all to no avail. Any help with this or in what window/menu to look in would be very-much appreciated. Thanks!
In the File System view in the setup project, select Application Folder and then use F4 (or right-click=>Properties window). That will show you the default location. The values in square brackets are Windows Installer properties, the rest are your text.
If you want to get more up to date Visual Studio Community Edition is free and there is an installer project add-on for it that you can get from the Visual Studio extension gallery.

Git Extensions doesn't show up in VS 2010 after installing

I have tried installing Git Extensions numerous times and can't get it to show up in VS 2010. There is simply no tool bar menu 'Git'. Any ideas?
It turns out that since I had moved the 'My Documents' folder in Win 7 Git Extensions installed the add-in in a VS 2010 folder in the correct 'My Documents' but VS was still looking in the c:\users\'me'\my documents\VS folder.
The issue appears to be that Git Extensions installs the add-in for the current user only.
If you are having this issue when running VS 2010 as Administrator, and you installed Git Extensions under a different user login, you can copy the Git Extensions add-in files - C:\Users\\Documents\Visual Studio 2010\Addins - to your C:\Users\\Documents\Visual Studio 2010 directory and Visual Studio will find it.
Set Git in: Tools -> Options -> Source Control -> Plug-in Selection
That seems similar to bug 80, which is still opened.
Downloaded the source and built in some logging, but none of that logging was appearing at all on the non-functioning machine, worked fine on the local machine.
Which lead me to believe (correctly) that the addin was not being picked up at all.
I am logging into a domain and have 2 user folders:
C:\Users\Sebastiaan
C:\Users\Sebastiaan.CAKAD
The second folder didn't contain the Addins folder in Documents\Visual Studio 2010.

How to create a new Visual Studio solution on the desktop using the context menu?

Years ago, using VS2005, I had a setup where I could right-click on the desktop/folder, select New, select Visual Studio 2005 solution and it would create a solution for me right there. I can't remember how I did this.
Does something like this exist for VS2008 or VS2010? It would be really handy.
EDIT: Figured it out based on the links in the answers (and also found an old email to myself).
1. Create a registry file (.reg) with the following content, then execute it:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.sln\ShellNew]
"FileName"="Visual Studio Solution.sln"
2. Create a new file called Visual Studio Solution.sln in C:\Windows\ShellNew folder with the following content:
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
3. Reboot Windows and you'll have yourself a context menu.
I used to use what I think you are looking for. It was done with a little registry update (.reg) file whose contents start like this
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.sln\ShellNew]
"Data"=hex:EF,BB,BF,D,A,4D,
of which this is just a snippet, and it was for an earlier version of VS. But this might be enough to jog your memory, or give you something to google for. See here for more
http://flux88.com/2009/03/right-click-new-visual-studio-solution/
edit..
also see http://visualstudiohacks.com/registry-hacks/create-solutions-without-folders/
I believe the Team Foundation Server edition of Visual Studio does that, either stand alone or with the Team Foundation Server Power Tools, which the Power Tools site says it has Windows Shell Extensions.
Also Codeplex hosts MSBuildShellExtension which is a little off topic for what your looking for, but its nice because it lets you build your project from any directory on your hard drive, without ever having to launch Visual Studio.
1) In Visual Studio 2010, use the "Blank Solution" project to create a solution.
2) Copy that SLN file into "%SystemRoot%\ShellNew".
3) In RegEdit, go to HKEY_CLASSES_ROOT.sln
4) If a key (folder) for "ShellNew" does not yet exist under .sln, create it.
5) Create a string value under ".sln" with a name of "Filename" and the filename of the SLN file for its data.
Done. No restart necessary.
REF: http://support.microsoft.com/kb/140333

Error while installing Microsoft visual studio Professional 2010

I am trying to install Microsoft visual studio Professional 2010 on my Windows XP SP3 edition. I am getting the error "vs_setup.msi could not be open" :
I have seen some forums mentioning the same problem for different reasons, and mostly because of having a previous version of Microsoft visual studio installed, but this is the first time for me to install it. Any idea how to fix that ?
Note: The actual setup files are in the path "G:\Visual Studio 2010 Professional". I do not know why the setup is trying to look for vs_setup.msi inside the "G:" directly ! Of course it is not there.
Maybe this setup is from DVD image and it's hardcoded to work in root directory.
Try to move all setup files to G:\ or another drive root
It probably doesn't like the spaces in the installation folder name. Rename "Visual Studio 2010 Professional" to VS2010Pro and see if it doesn't start working.
Also look for the setup log in %temp%. Sometimes it's cryptic but you can usually get SOME idea of what went wrong. Maybe edit your question with the errors from that log. It's called dd_something*something* etc.
Microsoft Visual Studio 2010 Shell (Isolated) Redistributable Package.
With 7zip open and extract VSIsoShell.exe in a New Directory (there are many files inside of this .exe).
After this is done, redirect to the right path w/ the extracted files (with vs_setup.msi file).
7zip is an Open source Windows utility for manipulating archives (www.7-zip.org)

Resources