Visual Studio Uninstall - visual-studio

I am trying to simply uninstall and remove Visual Studio from my computer however when I go to control panel and find it to remove it the installer opens and I click remove then it gives me this error log. If anyone knows how to fix these issues help would be greatly appreciated. Thanks again.
[2b18:000c][2019-02-21T17:20:25] Error 0x80131509: No product was found
at Microsoft.VisualStudio.Setup.Engine.GetRegisteredProduct()
at Microsoft.VisualStudio.Setup.Engine.Uninstall(CancellationToken token)
Update another error message gives this:

Please follow the cleanup steps to remove VS 2017:
See if you have this file on your machine: "%programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe"
If so, please launch it from an admin command prompt with a -full param
InstallCleanup.exe -full
If not, please manually delete the "%programfiles(x86)%\Microsoft Visual Studio\Installer” folder
Relaunch the newly downloaded vs_enterprise.exe (or vs_professional.exe or vs_community.exe…)
Allow the first step to install the installer
Once the installer comes up and you can see workload choices (.net desktop and the like), close it
Go launch the same InstallCleanup.exe to clean up old build of VS

Related

How do I fix visual studio installer (2019 community) is empty?

I downloaded the visual studio 2019 community installer and ran it. It ran successfully but instead of opening the visual studio installer when it completed it just closed. I located the visual studio installer 'setup.exe' (under C:/Program Files (x86)/Microsoft Visual Studio/Installer) and ran it. It opens the installer but instead of allowing me to select tools to install it just has 2 empty tabs labeled 'installed' and 'available' and a side bar that shows developer news.
I don't have any antivirus or firewall running. I uninstalled every version of visual studio I had in case the installer was assuming I already have VS2019. I updated windows and my drivers.
EDIT:
I had a hunch that I might find something out by using 'setup -h' in command prompt. It appears that it may be possible to install vs2019 by using the right tags.
I guessed
setup install --productid Microsoft.VisualStudio.Product.Community --channelid VisualStudio.15.Release
might work but the installer says "
A product matching the following parameters cannot be found:
channelId: VisualStudio.15.Release
productId: Microsoft.VisualStudio.Product.Community
"
If you know what the right tags are that might be an adequate solution.
Please try to reinstall it:
1) run cmd as Administrator and then type:
"%programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe" -full
2) restart vs_installer again.

Issue installing Microsoft Visual Studio Professional 2017 - "A product matching the following parameters cannot be found" during installation

This error presents itself immediately upon first launch of the program following the attempted install.
click to enlarge
I have ran %programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe -full and then re-ran the installer and the issue still presents itself.
I have tried the solutions here and they did not resolve my issue.
I also tried both of the answers here.
Any guidance here or things to try next will be very helpful!
Here are my log files from when I tried this in March. They're old, but re-running this installation still shows the exact same error.
https://pastebin.com/7D2JwGKF
for i in 12 do this.function
try this one
Open a command prompt with admin privileges
Run following command (this will clean up previous install cache. -full option is important) "%programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe" -full
Restart the installer
A product matching the following parameters cannot be found during VS Installation

I Have Problem Installing Extensions For Visual Sudio 2019

I Have A Problem And That Is :
I've Tried To Install An Extension From Visual Studio 2019 Extension Manager's MarketPlace
e.g (CodeMaid)
So I've Clicked And Downloaded It , When I've Restarted Visual Sudio To Install That Extension But Installer Said : The Install Of "CodeMaid" Extension For Visual Studio Was Not Successful for All the selected products.For More Information Click On The Install Log Link at the bottom of the dialog.]
Note That I Have Installed My Visual Studio In My H: Drive.
Please Help Me :(
I've Tried Any Extension To Install But They All NOT Installed Successfully e.g I Tried To Install Resharper But The Resharper Can't Detect My Visual Studio
(Sorry for My Bad English)
I Have The Screenshot Here:
Click Here To Open Image
You can install extension with .vsix file. Firstly, go to https://open-vsx.org/ and download the extension that you want.After downloading you will get VSIX file.Final step: open visual studio and go to EXTENSIONS.Click option icon(•••) and find and click (install from VSIX) and then choose your downloaded .vsix file. Done.
I've Tried Any Extension To Install But They All NOT Installed
Successfully e.g I Tried To Install Resharper But The Resharper Can't
Detect My Visual Studio
Please try these steps to troubleshoot your issue:
1) delete all vs componment caches under C:\Users\user\AppData\Local\Microsoft\VisualStudio\16.0_xxxxx\ComponentModelCache and do not forget to delete all the files under C:\Users\user\AppData\Local\Temp
2) disable any third party extensions under Extensions-->Manage Extensions to prevent any other extensions affect it.
3) run VS as administrator and then install the extension again.
4) do a repair in VS Installer
5) If your VS2019 is not the latest version, please update it to the latest version and please update your OS at the same time.
In addition, if all the steps does not work, l suggest you chould reinstall VS2019 and you would better install VS2019 on the default system disk. And there is a similar issue.
After you uninstall VS2019, please check if you have this:%programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe.
If so, please launch it from an admin command prompt with a -full param: InstallCleanup.exe -full
If not, please manually delete the %programfiles(x86)%\Microsoft Visual Studio\Installer folder
Then relaunch vs_enterprise.exe and then install VS2019.

Visual studio 2017 process with an id of is not running error

when I open a project in VS and Press F5 I get the error of "Process with an id of "xxxx" is not running" but if I keep Visual studio open and wait for about 30 minutes and then press F5 it works fine!
Does anyone knows why?
1.Run Visual Studio as an administrator
2.Open your project file(In Solution Explorer, right-click project=>unload project=>edit x.xxproj)
Delete script below:
<DevelopmentServerPort>63366</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:63366/</IISUrl>
Save the changes and reload the project. F5 to check if it helps.
Please check this similar issue.
Do the following steps :-
Close all the instances of VS in your PC.
Open folder which contains solution file for current project and delete the hidden .vs folder.
Again open the Visual Studio.
Press F5 and IIS Express should load as normal, allowing you to debug.
It works for me. Thanks!
we need a lot more information.
Are you trying to build a program with an IIS Instance? Did you delete any DLLs? Does it work on other machines?
Things to try:
Try a full clean and rebuild. That is, clean the solution, git new, rebuild all. Fix any errors and warnings, then launch with F5.
Run Visual Studio as an admin. Start > Visual Studio > right click > Run as Administrator.
In your csproj file, delete the following lines:
<DevelopmentServerPort>62140</DevelopmentServerPort>
<DevelopmentServerVPath></DevelopmentServerVPath>
<IISUrl>http://localhost:62116/</IISUrl>
Save, then reload.
Try following the solutions from this Stack Overflow:
Process with an ID #### is not running in visual studio professional 2013 update 3
Delete the IIS folder with:
rmdir /s /q "%userprofile%\Documents\IISExpress
Delete the .vs\Config folder in your Visual Studio instance.
Relaunch Visual Studio as Administrator, so they can be rebuilt.
You should now be up and running.
I tried all the solutions from here and from the Internet.
Eventually I uninstalled IIS Express and reinstalled it, and it worked. (tried on VS 2015)
I've done th esame as Sunny_sid but I just renamed .vs with old_vs, just in case.
Restart VS right after and project runs !
I was getting the same error today in my Visual Studio 2019. The easy fix is to kill the process that is running in the port you are trying to use.
To fix this, here are the steps I have done.
Verify that the port your application is running, right-click on the project, open the property pane.
Open the PowerShell and type the preceding command
Get-Process -Id (Get-NetTCPConnection -LocalPort 1068).OwningProcess
Please remember to change the port number. From the result, you can see that you have an ongoing process with Id 21276. You can also get this information from your IISEXPRESS too, from the pop-up message you get when the error occurs.
Go to Task Manager and then click on the Details` tab, find the process
Right-click on the process and then click End Task
You can also try doing this in PowerShell by running taskkill /F /PID pid_number or taskkill /IM "process name" /F
In my case, the error was caused by the fact that the project was targeting .NET5 but my other workstation only has .NET6. I changed the version number in the csproj file. I assume that installing .NET5 in this environment would have worked as well.
Would think the error message when I attempt to run the project would have been clearer. It was simple in the end.
I resolved the issue by turning OneDrive back on, seriously.
I must have free up some space on my PC and left OneDrive off. When VS ran it needed some files to be available to start up IIS.
I also cleaned .vs and bin/obj and we are back running 🤔

Visual studio does not install .vsix files

I've both VS 2012 and VS 2013 installed on my computer. The problem is that when I download an VSIX-File and open it with the Visual Studio version selector the file gets opened by VS but instead of installing it. VS opens the file as if it was an unknown binary format.
The attached image shows how VSIX-files are opened (happens with every file ... this is just an example):
I faced the same issue. Just use the VSIXInstaller to install the extension.
You can open "Developer Command Prompt for VS2012" tool in Start -> Microsoft Visual Studio 2012 -> Visual Studio Tools. On the console, run the below command:
VSIXInstaller <path to vsix file>
Open "Developer Command Prompt for VS2015" as administrator.
Type VSIXInstaller.exe vsixFilePath
Note that this way wouldn't work with me and gives me "Path to vsix file 'G:\Roslyn' is invaild or you don't have required access permissions". To solve this you need to put the path in a double quote like this:
VSIXInstaller.exe "G:\Roslyn SDK.vsix"
I got into a weird situation where in a fresh install of W10 and VS2015 Community, the Player Framework vsix installation won't start, either by dbl click or from command prompt using VSIxInstaller.exe, and would show no message at all. The solution was to open an elevated command prompt (run Developer Command Prompt for VS2015 as administrator) and then type VSIXInstaller.exe worked.
I am not clear whether you want to install or just view the contents of VSIX. If you want to install the extension, you just need to double click it and it will install (Do not try to open it with VS Version selector). If you want to see what is inside VSIX, it is basically an archive. So either try to use program like 7-zip to open it else, rename .vsix to .zip and then unzip it.
Further, there is also a chance that you have wrongly associated vsix files to be opened with Visual Studio. In such a case it will open in Visual Studio any case.
Finally, if you have wrongly associated the vsix to open with Visual Studio, try installing the extension using VSIXInstaller.exe found in C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\VSIXInstaller.exe
To add to the other answers, if the VSIX files either doesn't have an associated program to open with or opens with the wrong application, selecting the VSIXInstaller.exe as the associated commands re-enables the ability to double-click and directly install it (without the need to do it via commandline).
I faced a similar issue when I first installed VS 2017. This is what worked for me.
Resolution:
Restart VS 2017.(I hadn't restarted it before installation)
Install it from Tools->Extension & Updates.Search for "Perforce" and install.
I double clicked on this and it installed just fine.
Couldn't do it on VS2013 through the extensions dialog.
for me the problem was the extension InstallerProjects was on network server so I had to copy it to my machine (local) and it worked

Resources