How to rename Visual Studio - 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.

Related

Visual Studio Installer Projects product name diacritics

I am using Microsoft Visual Studio Installer projects extension to create an installer for my app.
Works OK, but the problem is that the product name contains "ลก" character in it and the font used in the msi installer obviously doesn't support that character:
Anything I can do about that?
Some background info:
I initially developed the app in VS 2015 which had a free Install Shield Limited edition. Or maybe it was even VS2013, don't really remember... However, now I need to make some changes in the app. There was no problem with such a name in Install Shield back then. So I tried to open the project in VS 2022, but obviously Install shield's no longer an option. This is where VS Installer project comes in, but there's the problem with the diacritics...
This looks like an encoding issue. Try searching in the VS project properties for an option to set the encoding to Unicode. I don't use the VS projects that much, so I don't know if you have the option to change it not, but it might be there.
Also, if you are looking for a better free MSI packaging tool, try the Advanced Installer extension for Visual Studio. There is one for each version of VS.
Disclaimer. I work on the team building Advanced Installer.

After Visual Studio 2015 installation, hard drives seem to be locked

I have a Windows 2012 system with Visual Studio 2010 installed. It worked fine on this system. Today I installed Visual Studio 2015 Community Edition on it. After installation, when I try to open existing solutions with Visual Studio 2010, the loading becomes very slow. Also, I am not able to save any modified files in the solutions. It seems that all the solution folders and files have become read-only. When I tried to change the attribute in Explorer, I was shown "You will need to provide administrator persmissions to change these attributes", even though I already logged in as administrator.
When I tried to save an ordinary text file, I was also not able to because some process is locking it. The same thing happens to C:\ as well.
Also, I notice that if I right click and select "New" from the pop-up menu in Explorer, the only option is "Folder" (this only happens for D:\ and not C:).
What could be the problem?
The local security policy was changed when I installed Visual Studio 2015 Community Edition. In Security Settings -> Local Policies -> Security Options, "User Account Control: Run all administrators in Admin Approval Mode" was changed to "Enabled". All I needed to do was to change it back to "Disabled" and then restart the system. The problems described disappeared after that.

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.

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)

"silverlight for Windows 7 Phone" option is not shown in "Add new Item" option

I have downloaded and installed Microsoft Visual Studio 2010 Express for Windows 7 Phone. Problem is that i cant see "Silverlight for Windows Phone" option when I right click my Project name and select Add -> New Item option. I can only see "XNA Game Studio 4.0" under "Visual C#" category.
I have tried installing Silverlight SDK separately by downloading it from Microsoft site but the installer tells me that i have already installed the newer version of the SDK. Due to this problem I can't use few Silverlight classes like ChildWindow etc.
Can anyone please help me in this regard?
I personally haven't had problems with the WP tools install, but I have witnessed others having problems. The only advice I can give is to uninstall all the tools, sdk, etc and reinstall with the latest.
It's a pain, but might be necessary unless someone has a better idea.
The instructions at http://msdn.microsoft.com/en-us/library/ff402526(v=VS.92).aspx say
Make sure you have downloaded and installed the Windows Phone Developer Tools from the App Hub.
So my advice is to make sure you've done that.
Right having just struggled with this myself I finally found an answer.
If you have a Full version of Visual Studio installed it will not install the templates to the Phone version of C# express (turns out it is actually a different executable to the standard C# Express, go figure)
So to resolve this you need to do a couple of things:
Snippets
First, add the path to the Snippets in the snippet Manager using "Tools -> Code Snippets Manager"
Click on "Add" and enter the following Path:
C:\Program Files (x86)\Laurent Bugnion (GalaSoft)\Mvvm Light Toolkit\Snippets\CSharp\
(Note ignore the (x86) if you are on a 32bit system)
This will install the installed snippets into VS Express.
Templates
Now this is a little more tricky but bear with me
Copy the MVVM folder from:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Silverlight\
To
{Documents Folder}\Visual Studio 2010\Templates\ProjectTemplates\Visual C#\
(Replacing the {Documents Folder} section with your My Documents folder)
Repeat the above replacing ProjectTemplates with ItemTemplates
Finally!!
To finish this off you have to tell VS Phone Express to actually install the templates
Run a Command Prompt with administrative privileges (either create a command line short-cut on the desktop and right-click run it with admin privileges or use the VS tools command prompt)
Run the Following command in that window
"c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\VPDExpress.exe" /installvstemplates
(Note ignore the (x86) if you are on a 32bit system)
If all goes well you should see nothing happen :D, but if you run VS Express for Windows Phone now you will have the new templates installed and the item templates plus the all useful code snippets
Hope this helps!

Resources