Error updating Visual Studio 2017 15.6.2 - visual-studio

I was trying to update VS 2017 to 15.6.2 version. As usual VS asked me to update the Installer. But the Installer updating failed and now, when I try to launch the VS updating again, I get this error message:
Error loading vs_installershell.exe: No signature was present in the subject.
Anyone has ever seen this before? Any help will be appreciated.

Microsoft recommends the following procedure in this case:
Close the Visual Studio Installer.
Delete the Visual Studio Installer directory. Typically, the directory is C:\Program Files (x86)\Microsoft Visual Studio\Installer.
Run the Visual Studio Installer bootstrapper. You may find the bootstrapper in your Downloads folder with a file name that follows a vs_[Visual Studio edition]__*.exe pattern. If you don't find that application, you can download the bootstrapper by going to the Visual Studio downloads page and clicking Download for your edition of Visual Studio. Run the executable to reset your installation metadata.
Try to install or update Visual Studio again. If the Installer continues to fail, go to the next step.
There is also a bit of warning:
Performing the following actions reinstalls the Visual Studio Installer files and resets the installation metadata.
But in the end, it reinstalls the VS Updater.
Source: https://learn.microsoft.com/en-us/visualstudio/install/troubleshooting-installation-issues

Related

Visual Studio Installer 2019 Community 16.9 crash

During update Visual Studio 2019 to latest version (16.9), setup failed. Stupidly I closed installer window without read the error.
When I retryed the update, the Installer crashes few seconds after start.
I have uninstalled wholly Visual Studio, but Installer still crash.
I think something is left dirty after first update fail, I tried to search in log files recoverd by collect.exe tools, but I can't found usefull information in that bilions of messages.
Reinstalling Windows must be the last choice, there is a way to take crash error for undertand the problem and search for a solution?
EDIT
Also InstallCleanup.exe don't solve the problem
Visual Studio Installer version 2.9.3349 has problems with culture "it-IT". If that's your case (as it is mine), there is a workaround here:
https://developercommunity.visualstudio.com/t/Visual-Studio-Installer-crashes-after-up/1356122
The workaround is to force a working locale: ./vs_installer.exe --locale en-US
If you think your install and/or installer is corrupted, run the installation cleaner tool available at the URL below and then re-download the latest installer, from which you can get 16.9.
https://learn.microsoft.com/en-us/visualstudio/install/remove-visual-studio?view=vs-2019
Additionally there is a step you can try in Troubleshooting Installation Issues, specifically Step 4 (The advice above the break is actually Step 6 in this process)
Step 4 - Delete the Visual Studio Installer directory to fix upgrade problems
The Visual Studio Installer bootstrapper is a minimal light-weight executable that installs the rest of the Visual Studio Installer. Deleting Visual Studio Installer files and then rerunning the bootstrapper might solve some update failures.
Note
Performing the following actions reinstalls the Visual Studio Installer files and resets the installation metadata.
Close the Visual Studio Installer.
Delete the Visual Studio Installer directory. Typically, the directory is C:\Program Files (x86)\Microsoft Visual Studio\Installer.
Run the Visual Studio Installer bootstrapper. You might find the bootstrapper in your Downloads folder with a file name that follows a vs_[Visual Studio edition]__*.exe pattern. If you don't find that application, you can download the bootstrapper by going to the Visual Studio downloads page and clicking Download for your edition of Visual Studio. Then, run the executable to reset your installation metadata.
Try to install or update Visual Studio again. If the Installer continues to fail, go to the next step.
You have to download the installer again for the offline installation eg.vs_enterprise.exe then run vs_enterprise.exe --layout "folder where you have the offline installation". The new installer needs to download a different new configuration file vs_installer.version.json
https://learn.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2019

Unknown Error on opening Visual Studio 2017

When i try open Visual Studio, I immediately receive an error message. The message only tell me to open a xml file to receive more informations.
The directory of the xml file is C:\Users\User\AppData\Roaming\Microsoft\VisualStudio\15.0_ae456ee1\ActivityLog.xml
I already tried some possible solutions, like delete the privateregistry.bin file, on this directory: C:\Users\User\AppData\Local\Microsoft\VisualStudio\15.0_ae456ee1. But when I delete this file and try open Visual Studio, instead of receive the error immediately, the logo of Visual Studio appears, then the error message appears and the privateregistry.bin file is re-created.
This problem first happened in the Visual Studio 2017 Community. I reinstalled this version and downloaded Visual Studio Professional, but the error continues.
Repair Visual Studio 2017
Sometimes your Visual Studio installation becomes damaged or corrupted. A repair can fix this.
Find the Visual Studio Installer on your computer.
For example, on a computer running Windows 10 Anniversary Update or later, select Start,
and then scroll to the letter V, where it's listed as Visual Studio Installer.
Note
On some computers, the Visual Studio Installer might be listed under
the letter "M" as the Microsoft Visual Studio Installer.
Alternatively, you can find the Visual Studio Installer in the
following location: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe
Click or tap to start the installer, then select More, and then select Repair.
My exact issue was for an Unreal Engine 4 solution. The problem was the the intermediate folder was moved, and a new one re-generated. Instead of having to re-generate project files (from the .uproject), I simply deleted the auto-generated intermediate folder and replaced with the moved/old version (which included the build files from an initial project generation from the .uproject).
It is at least better to try a solution other than repairing the install, as that will delete external plugins and preferences...

unable to locate visual studio installer

When I trying to open visual studio installer in visual studio 2017 an error message is displayed: can't locate visual studio installer. It might be because I deleted it by mistake. I tried to look for the download of visual studio installer and did not find it. I must delete complitly visual studio 2017 from my drive as fast as it possible.
Go to control panel>>Control Panel\Programs\Programs and Features>>right click on visual studio>>select change.
your installer window will appear on the screen.
Try below link
https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&rel=15#
Download installer from above link and then run installer.
It will automatically display your installed vs 2017 components
From there you can install/uninstall vs 2017
Run the installer again. You don't have to uninstall first. I had the same problem when updating to v15.2 today.

Test project does not open in visual studio 2010

When I try and open the test project in visual studio 2010 I get an error saying the template is not found.
Does anyone know of a way to manually install this template or repair it.
You can run Visual Studio installer any time to repair your VS installation or to add/remove features.
Probably your installation is missing the examples...

PROBLEM encountered visual studio 2008 installation

I installed Visual Studio 2008 package FULL option. It worked with out any problem. I installed Vstudio 2008 and MSDN in separate folder in the D drive. 2 days later in order to remove my projects i uninstalled every thing and also i deleted visual studio 2008, visual studio 2005 folders from C:\Documents and Settings\IRCTC\My Documents. (I believe these 2 folders were automatically created when we install visual studio) also I cleared %path% and path (c/windows/path). Again I installed VISUAL STUDIO 2008 but now I can't able to create window application (other web, vb also), what is the solution for this ...
ERROR that shown is
c:/documents and settings/IRCTC/local settings/temp/g1zzsdl.bak/temp/windowsFormsApplication.csproj cannot be opened because project type (.csproj) is not supported by this version of visual studio.......
Whether any system file corrupted (windows temp or .net folber in windows).....
No other installation problem found in my system.....
please help.....
What are the files/folders required for the installation......
When you get that error is usually because:
You are trying to open a project created with a previous version of Visual Studio (not your case)
There was a bit of a screw-up during the installation (sounds like your case)
I'd uninstall the thing and reinstall completely first thing.
If it still doesn't work, it could be related to VS templates and you might wanna try and run from Visual Studio 2008 command prompt:
devenv /InstallVSTemplates
If it still doesn't work, open Visual Studio, in the menu, Open Tools->Options->Projects and Solutions->General. At this point you will notice the path of Project Templates is set to "C:\Documents and Settings[yourUserName]\My Documents\Visual Studio 9\Templates\ProjectTemplates" or something very similar to that. In order to fix it you gotta set that path to C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\Project Templates or the same path according to wherever you installed Visual Studio
I don't think is related to VS project Templates though - see this link
Try and see what happens!
Why didn't you use visual studio's uninstall function available from the control panel|add/remove programs?
I would uninstall the latest installation as described above, and try again.

Resources