Uninstalling Visual Studio Enterprise results in the following error:
048c:0012][2021-01-01T21:52:35] Error 0x80131500: Unexpected character encountered while parsing value: $. Path ''.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonSerializer.Deserialize[T](JsonReader reader)
at Microsoft.VisualStudio.Setup.Serialization.ModelSerializer`1.Deserialize(TextReader reader)
at Microsoft.VisualStudio.Setup.Cache.DirectoryRepository.GetPackage(IPackageIdentity identity)
at Microsoft.VisualStudio.Setup.Cache.CacheRepository.GetPackage(IPackageIdentity identity)
at Microsoft.VisualStudio.Setup.Installer.Extensions.IsPayloadRequired(IInstallablePackage package, ExecuteAction action, IServiceProvider services, ExecuteAction bootstrapperAction)
at Microsoft.VisualStudio.Setup.InstallOperation.CreateDownloadInstallActivities(InstallablePackage installable, ExecuteAction action, Boolean isPresent)
at Microsoft.VisualStudio.Setup.InstallOperation.PlanInstallable(InstallablePackage installable, Dictionary`2 downloadLookup, PackagePlan& packagePlan, Boolean repairPackagesWithDuplicateFiles, Boolean upgradeConfigurationPackage)
at Microsoft.VisualStudio.Setup.InstallOperation.Plan()
at Microsoft.VisualStudio.Setup.InstallOperation.Schedule()
at Microsoft.VisualStudio.Setup.Engine.CreateInstallOperation(Product product, String destination, ExecuteAction action, ITelemetryOperation telemetryOperation)
at Microsoft.VisualStudio.Setup.Engine.Uninstall(CancellationToken token)
Any help would be much appreciated
You are trying uninstall Visual Studio via command line and you are not passing the right path of Visual Studio Enterprise:
vs_enterprise.exe uninstall --installPath <Visual Studio installation location>
For documentation read and check this.
I also suggest if you have issue with it you can use Visual Studio Installer.
User contributions licensed under CC BY-SA 3.0