Abd*_*oiz 6 uninstallation visual-studio .net-core asp.net-core
我在为 .NET Core 开发设置系统时遇到了很多麻烦。大约一年前,我在我的机器上安装了一个视觉工作室,但它很久以前就被删除了。但它的一些残骸仍然存在于系统中。因此,当我尝试从https://visualstudio.microsoft.com/downloads/全新安装最新版本的 VS 社区版(2019)时,安装进展顺利,但在启动 VS2019 甚至创建时出现了太多错误和警告该项目,因为它无法找到 .NET core SDK,但是它们也存在于系统中,并且也添加到了环境变量中。
我最终决定删除系统上安装的所有当前和旧 VS 的剩余部分。并从头开始重新安装一切。做到这一点非常困难,因为大多数文件都没有被卸载并给出错误,所以我使用了 MSI Inventory 工具https://sqlgeekspro.com/uninstall-sql/并成功卸载了几乎所有文件,除了几个版本的 . NET 核心 SDK。我也尝试过.NET Core卸载工具https://github.com/dotnet/cli-lab/releases,但它不适用于与VS一起安装的SDK,这是它的限制。
当我尝试从“添加/删除程序”卸载 .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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1366 次 |
| 最近记录: |