无法使用Visual Studio卸载.NET Core SDK安装,SQL Server仍存在

qxgroojn  于 2022-11-17  发布在  .NET
关注(0)|答案(1)|浏览(169)

我在为. NETCore开发设置系统时遇到了很多麻烦。大约一年前,我在我的机器上安装了VisualStudio,但是它在很久以前就被删除了。但是它的一些残余仍然在系统中。所以当我试图重新安装最新版本的VS社区版时(2019)from https://visualstudio.microsoft.com/downloads/安装进行得很顺利,但我在启动VS 2019甚至在创建项目时收到了太多的错误和警告,因为它无法找到.NET核心SDK,然而,它们就在系统中,就像在环境变量中添加的一样。
最后我决定删除所有安装在我系统上的当前和旧的VS。并从头开始重新安装一切。这是非常困难的,因为大多数文件没有得到卸载,并给出错误,所以我使用微星库存工具https://sqlgeekspro.com/uninstall-sql/,并成功地卸载了几乎所有的东西,除了几个版本的.NET核心SDKs。我也尝试过。NET核心卸载工具https://github.com/dotnet/cli-lab/releases,但它不工作的SDK与VS一起安装,这是它的限制。
下面给出的是我需要卸载的东西,无法,x1c 0d1x
当我尝试从“添加/删除程序”卸载.NET Core SDK 3.1.201时,出现此错误。

当我试图卸载任何Visual C++时,我得到这个错误:

,日志如下所示

[2D98:0344][2020-05-03T18:47:20]i001: Burn v3.10.4.4718, Windows v10.0 (Build 17134: Service Pack 0), path: C:\ProgramData\Package Cache\{65e650ff-30be-469d-b63a-418d71ea1765}\VC_redist.x86.exe
[2D98:0344][2020-05-03T18:47:20]i009: Command Line: '"-burn.clean.room=C:\ProgramData\Package Cache\{65e650ff-30be-469d-b63a-418d71ea1765}\VC_redist.x86.exe" -burn.filehandle.attached=612 -burn.filehandle.self=628 /uninstall'
[2D98:0344][2020-05-03T18:47:20]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\MOIZ~1.BAI\AppData\Local\Temp\dd_vcredist_x86_20200503184720.log'
[2D98:0344][2020-05-03T18:47:20]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation'
[2D98:1BC8][2020-05-03T18:47:20]i000: Setting version variable 'WixBundleFileVersion' to value '14.25.28508.3'
[2D98:0344][2020-05-03T18:47:21]i100: Detect begin, 10 packages
[2D98:0344][2020-05-03T18:47:21]i000: Setting version variable 'windows_uCRT_DetectKey' to value '10.0.17134.677'
[2D98:0344][2020-05-03T18:47:21]i000: Setting numeric variable 'windows_uCRT_DetectKeyExists' to value 1
[2D98:0344][2020-05-03T18:47:21]i052: Condition '(VersionNT = v6.3 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2D98:0344][2020-05-03T18:47:21]i052: Condition '(VersionNT = v6.3 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2D98:0344][2020-05-03T18:47:21]i052: Condition '(VersionNT = v6.2 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2D98:0344][2020-05-03T18:47:21]i052: Condition '(VersionNT = v6.2 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2D98:0344][2020-05-03T18:47:21]i052: Condition '(VersionNT = v6.1 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2D98:0344][2020-05-03T18:47:21]i052: Condition '(VersionNT = v6.1 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2D98:0344][2020-05-03T18:47:21]i052: Condition '(VersionNT = v6.0 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2D98:0344][2020-05-03T18:47:21]i052: Condition '(VersionNT = v6.0 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2D98:0344][2020-05-03T18:47:21]i101: Detected package: Windows81_x86, state: Absent, cached: None
[2D98:0344][2020-05-03T18:47:21]i101: Detected package: Windows81_x64, state: Absent, cached: None
[2D98:0344][2020-05-03T18:47:21]i101: Detected package: Windows8_x86, state: Absent, cached: None
[2D98:0344][2020-05-03T18:47:21]i101: Detected package: Windows8_x64, state: Absent, cached: None
[2D98:0344][2020-05-03T18:47:21]i101: Detected package: Windows7_MSU_x86, state: Absent, cached: None
[2D98:0344][2020-05-03T18:47:21]i101: Detected package: Windows7_MSU_x64, state: Absent, cached: None
[2D98:0344][2020-05-03T18:47:21]i101: Detected package: WindowsVista_MSU_x86, state: Absent, cached: None
[2D98:0344][2020-05-03T18:47:21]i101: Detected package: WindowsVista_MSU_x64, state: Absent, cached: None
[2D98:0344][2020-05-03T18:47:21]i101: Detected package: vcRuntimeMinimum_x86, state: Present, cached: Complete
[2D98:0344][2020-05-03T18:47:21]i101: Detected package: vcRuntimeAdditional_x86, state: Present, cached: Complete
[2D98:0344][2020-05-03T18:47:21]i052: Condition 'VersionNT >= v6.0 OR (VersionNT = v5.1 AND ServicePackLevel >= 2) OR (VersionNT = v5.2 AND ServicePackLevel >= 1)' evaluates to true.
[2D98:0344][2020-05-03T18:47:21]i199: Detect complete, result: 0x0
[2D98:0344][2020-05-03T18:47:22]i200: Plan begin, 10 packages, action: Uninstall
[2D98:0344][2020-05-03T18:47:22]i000: Setting string variable 'WixBundleRollbackLog_vcRuntimeAdditional_x86' to value 'C:\Users\MOIZ~1.BAI\AppData\Local\Temp\dd_vcredist_x86_20200503184720_000_vcRuntimeAdditional_x86_rollback.log'
[2D98:0344][2020-05-03T18:47:22]i000: Setting string variable 'WixBundleLog_vcRuntimeAdditional_x86' to value 'C:\Users\MOIZ~1.BAI\AppData\Local\Temp\dd_vcredist_x86_20200503184720_000_vcRuntimeAdditional_x86.log'
[2D98:0344][2020-05-03T18:47:22]i000: Setting string variable 'WixBundleRollbackLog_vcRuntimeMinimum_x86' to value 'C:\Users\MOIZ~1.BAI\AppData\Local\Temp\dd_vcredist_x86_20200503184720_001_vcRuntimeMinimum_x86_rollback.log'
[2D98:0344][2020-05-03T18:47:22]i000: Setting string variable 'WixBundleLog_vcRuntimeMinimum_x86' to value 'C:\Users\MOIZ~1.BAI\AppData\Local\Temp\dd_vcredist_x86_20200503184720_001_vcRuntimeMinimum_x86.log'
[2D98:0344][2020-05-03T18:47:22]w321: Skipping dependency registration on package with no dependency providers: WindowsVista_MSU_x64
[2D98:0344][2020-05-03T18:47:22]w321: Skipping dependency registration on package with no dependency providers: WindowsVista_MSU_x86
[2D98:0344][2020-05-03T18:47:22]w321: Skipping dependency registration on package with no dependency providers: Windows7_MSU_x64
[2D98:0344][2020-05-03T18:47:22]w321: Skipping dependency registration on package with no dependency providers: Windows7_MSU_x86
[2D98:0344][2020-05-03T18:47:22]w321: Skipping dependency registration on package with no dependency providers: Windows8_x64
[2D98:0344][2020-05-03T18:47:22]w321: Skipping dependency registration on package with no dependency providers: Windows8_x86
[2D98:0344][2020-05-03T18:47:22]w321: Skipping dependency registration on package with no dependency providers: Windows81_x64
[2D98:0344][2020-05-03T18:47:22]w321: Skipping dependency registration on package with no dependency providers: Windows81_x86
[2D98:0344][2020-05-03T18:47:22]i201: Planned package: vcRuntimeAdditional_x86, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[2D98:0344][2020-05-03T18:47:22]i201: Planned package: vcRuntimeMinimum_x86, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[2D98:0344][2020-05-03T18:47:22]i201: Planned package: WindowsVista_MSU_x64, state: Absent, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[2D98:0344][2020-05-03T18:47:22]i201: Planned package: WindowsVista_MSU_x86, state: Absent, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[2D98:0344][2020-05-03T18:47:22]i201: Planned package: Windows7_MSU_x64, state: Absent, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[2D98:0344][2020-05-03T18:47:22]i201: Planned package: Windows7_MSU_x86, state: Absent, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[2D98:0344][2020-05-03T18:47:22]i201: Planned package: Windows8_x64, state: Absent, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[2D98:0344][2020-05-03T18:47:22]i201: Planned package: Windows8_x86, state: Absent, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[2D98:0344][2020-05-03T18:47:22]i201: Planned package: Windows81_x64, state: Absent, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[2D98:0344][2020-05-03T18:47:22]i201: Planned package: Windows81_x86, state: Absent, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[2D98:0344][2020-05-03T18:47:22]i299: Plan complete, result: 0x0
[2D98:0344][2020-05-03T18:47:22]i300: Apply begin
[2D98:0344][2020-05-03T18:47:22]i010: Launching elevated engine process.
[2D98:0344][2020-05-03T18:47:28]i011: Launched elevated engine process.
[2D98:0344][2020-05-03T18:47:28]i012: Connected to elevated engine.
[16C0:0E80][2020-05-03T18:47:28]i358: Pausing automatic updates.
[16C0:0E80][2020-05-03T18:47:28]i359: Paused automatic updates.
[16C0:0E80][2020-05-03T18:47:28]i360: Creating a system restore point.
[16C0:0E80][2020-05-03T18:47:30]i361: Created a system restore point.
[16C0:0E80][2020-05-03T18:47:30]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{65e650ff-30be-469d-b63a-418d71ea1765}, resume: Active, restart initiated: No, disable resume: No
[16C0:0E80][2020-05-03T18:47:30]i301: Applying execute package: vcRuntimeAdditional_x86, action: Uninstall, path: (null), arguments: ' MSIFASTINSTALL="7" NOVSUI="1"'
[16C0:0E80][2020-05-03T18:47:30]e000: Error 0x80070643: Failed to uninstall MSI package.
[16C0:0E80][2020-05-03T18:47:30]e000: Error 0x80070643: Failed to execute MSI package.
[2D98:0344][2020-05-03T18:47:30]e000: Error 0x80070643: Failed to configure per-machine MSI package.
[2D98:0344][2020-05-03T18:47:30]i319: Applied execute package: vcRuntimeAdditional_x86, result: 0x80070643, restart: None
[2D98:0344][2020-05-03T18:47:30]e000: Error 0x80070643: Failed to execute MSI package.
[16C0:0E80][2020-05-03T18:47:30]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{65e650ff-30be-469d-b63a-418d71ea1765}, resume: ARP, restart: None, disable resume: No
[16C0:0E80][2020-05-03T18:47:30]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{65e650ff-30be-469d-b63a-418d71ea1765}, resume: ARP, restart initiated: No, disable resume: No
[2D98:0344][2020-05-03T18:47:30]i399: Apply complete, result: 0x80070643, restart: None, ba requested restart:  No

当我尝试卸载SQL Server时,出现如下所示的错误

tyu7yeag

tyu7yeag1#

若要卸载通过Visual Studio安装程序安装的SDK版本,需要再次使用安装程序修改安装。
因此,要绕过此错误:

您必须在安装程式中取消核取Visual Studio的SDK选项,并修改您的安装:

相关问题