本文介绍了安装.NET Core SDK失败。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

Hello,

我正在尝试安装.NET核心SDK版本2.2.203(截至今天),但安装失败,错误,"用户取消安装。"用"重试"和"取消"纽扣。我没有取消
安装。单击立即重试会导致出现相同的窗口。我确实以管理员身份运行安装程序。

I am trying to install the .NET Core SDK version 2.2.203 (latest as of today), but the installation fails immediately with error, "User cancelled installation." with "Retry" and "Cancel" buttons. I did not cancel the installation. Clicking Retry immediately results in the same window appearing. I did run the installer as administrator.

如果我点击"取消"按钮我得到了"安装失败"带有以下内容的窗口:

If I click "Cancel" I get a "Setup Failed" window with the following:

安装失败

一个或多个问题导致安装失败。请修复问题,然后重试设置。有关详细信息,请参阅  日志文件

One or more issues caused the setup to fail. Please fix the issues and then retry setup. For more information see the log file.

0x80070642 - 用户取消安装。

0x80070642 - User cancelled installation.

引用的日志文件包含以下内容:

The referenced log file contains the following:

[38EC:3578] [2019-05-04T14:16:59] i001:刻录v3.10.4.4718,Windows v10.0(Build 17763:Service Pack 0),路径:C:\ WINDOWS \Temp \ {E6E7F00F-A56E-4459-969A-73A476B752A8} \。cr\dotnet-sdk-2.2.203-win -gs-x64.exe

[38EC:3578][2019-05-04T14:16:59]i001: Burn v3.10.4.4718, Windows v10.0 (Build 17763: Service Pack 0), path: C:\WINDOWS\Temp\{E6E7F00F-A56E-4459-969A-73A476B752A8}\.cr\dotnet-sdk-2.2.203-win-gs-x64.exe

[38EC:3578] [2019-05-04T14:16:59] i000:将字符串变量'DOTNETHOME'初始化为值'[ProgramFiles6432Folder ] dotnet'

[38EC:3578][2019-05-04T14:16:59]i000: Initializing string variable 'DOTNETHOME' to value '[ProgramFiles6432Folder]dotnet'

[38EC:3578] [2019-05-04T14:16:59] i000:将字符串变量'BUNDLEMONIKER'初始化为值'Microsoft .NET Core SDK 2.2.203'

[38EC:3578][2019-05-04T14:16:59]i000: Initializing string variable 'BUNDLEMONIKER' to value 'Microsoft .NET Core SDK 2.2.203'

[38EC:3578] [2019-05-04T14:16:59] i000:将字符串变量'DOTNETSDKVERSION'初始化为值'2.2.203'

[38EC:3578][2019-05-04T14:16:59]i000: Initializing string variable 'DOTNETSDKVERSION' to value '2.2.203'

[38EC:3578] [2019-05-04T14:16 :59] i000:将字符串变量'DOTNETRUNTIMEVERSION'初始化为值'2.2.4'

[38EC:3578][2019-05-04T14:16:59]i000: Initializing string variable 'DOTNETRUNTIMEVERSION' to value '2.2.4'

[38EC:3578] [2019-05-04T14:16:59] i000 :将字符串变量'ASPNETCOREVERSION'初始化为值'2.2.4'

[38EC:3578][2019-05-04T14:16:59]i000: Initializing string variable 'ASPNETCOREVERSION' to value '2.2.4'

[38EC:3578] [2019-05-04T14:16:59] i009:命​​令行: '-burn.clean.room = C:\ Users\ME \Downloads \ _dotnet-sdk-2.2.203-win-gs-x64.exe -burn.filehandle.attached = 228 -burn.filehandle.self = 616'

[38EC:3578][2019-05-04T14:16:59]i009: Command Line: '-burn.clean.room=C:\Users\ME\Downloads\dotnet-sdk-2.2.203-win-gs-x64.exe -burn.filehandle.attached=228 -burn.filehandle.self=616'

[38EC:3578] [2019-05-04T14:16:59] i000:将字符串变量'WixBundleOriginalSource'设置为值'C:\ Users \ me\Downloads\dotnet-sdk-2.2.203-win-gs-x64.exe'

[38EC:3578][2019-05-04T14:16:59]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\ME\Downloads\dotnet-sdk-2.2.203-win-gs-x64.exe'

[38EC:3578] [2019-05-04T14 :16:59] i000:将字符串变量'WixBundleOriginalSourceFolder'设置为值'C:\ Users \ ME \Downloads \'

[38EC:3578][2019-05-04T14:16:59]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\ME\Downloads\'

[38EC:3578] [2019-05-04T14:16:59] i000:将字符串变量'WixBundleLog'设置为值'C:\Users\ME\AppData \ Local \ Temp \\ _Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659.log'

[38EC:3578][2019-05-04T14:16:59]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\ME\AppData\Local\Temp\Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659.log'

[38EC:3578] [2019-05-04T14:16:59] i000:设置字符串变量'WixBundleName'重视'Microsoft .NET Core SDK 2.2.203(x64)'

[38EC:3578][2019-05-04T14:16:59]i000: Setting string variable 'WixBundleName' to value 'Microsoft .NET Core SDK 2.2.203 (x64)'

[38EC:3578] [2019-05-04T14:16:59] i000 :将字符串变量'WixBundleManufacturer'设置为值'Microsoft Corporation'

[38EC:3578][2019-05-04T14:16:59]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation'

[38EC:2B0C] [2019-05-04T14:16:59] i000:设置数字变量' WixStdBALanguageId'值为1033

[38EC:2B0C][2019-05-04T14:16:59]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033

[38EC:2B0C] [2019-05-04T14:16:59] i000:将版本变量'WixBundleFileVersion'设置为值'2.2.203.0 '

[38EC:2B0C][2019-05-04T14:16:59]i000: Setting version variable 'WixBundleFileVersion' to value '2.2.203.0'

[38EC:3578] [2019-05-04T14:17:00] i100:检测开始,5个套餐

[38EC:3578][2019-05-04T14:17:00]i100: Detect begin, 5 packages

[38EC:3578] [2019-05-04T14:17:00] i101:检测到的包:dotnet_runtime_2.2.4_win_x64.msi,state:Absent,cached:None

[38EC:3578][2019-05-04T14:17:00]i101: Detected package: dotnet_runtime_2.2.4_win_x64.msi, state: Absent, cached: None

[38EC:3578] [2019-05-04T14:17:00] i101:检测到的包:dotnet_hostfxr_2.2.4_win_x64.msi,state:Absent,cached:None

[38EC:3578][2019-05-04T14:17:00]i101: Detected package: dotnet_hostfxr_2.2.4_win_x64.msi, state: Absent, cached: None

[38EC:3578] [2019-05-04T14:17:00] i101:检测到的包:dotnet_host_2.2.4_win_x64.msi,state:Absent,cached:None

[38EC:3578][2019-05-04T14:17:00]i101: Detected package: dotnet_host_2.2.4_win_x64.msi, state: Absent, cached: None

[38EC:3578] [2019-05-04T14:17:00] i101:检测到的包:dotnet_sdk_internal_2.2.203_win_x64.msi,state:Absent,cached:None

[38EC:3578][2019-05-04T14:17:00]i101: Detected package: dotnet_sdk_internal_2.2.203_win_x64.msi, state: Absent, cached: None

[38EC:3578] [2019-05-04T14:17:00] i101:检测到的包:AspNetCoreSharedFramework_x64,状态:缺席,缓存:无

[38EC:3578][2019-05-04T14:17:00]i101: Detected package: AspNetCoreSharedFramework_x64, state: Absent, cached: None

[38EC:3578] [2019-05-04T14:17:00] i199:检测完成,结果:0x0

[38EC:3578][2019-05-04T14:17:00]i199: Detect complete, result: 0x0

[38EC:3578] [2019-05-04T14 :17:02] i200:计划开始,5个包,操作:安装

[38EC:3578][2019-05-04T14:17:02]i200: Plan begin, 5 packages, action: Install

[38EC:3578] [2019-05-04T14:17:02] i000:设置字符串变量'WixBundleRollbackLog_dotnet_runtime_2.2.4_win_x64.msi'到值'C:\Users\ME\AppData \ Local \Temp \ Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_000_dotnet_runtime_2.2.4_win_x64.msi_rollback.log'

[38EC:3578][2019-05-04T14:17:02]i000: Setting string variable 'WixBundleRollbackLog_dotnet_runtime_2.2.4_win_x64.msi' to value 'C:\Users\ME\AppData\Local\Temp\Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_000_dotnet_runtime_2.2.4_win_x64.msi_rollback.log'

[38EC:3578] [2019-05-04T14:17:02] i000:设置字符串变量WixBundleLog_dotnet_runtime_2.2.4_win_x64.msi'为值'C:\Users\ME\AppData \ Local \Temp \ Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_000_dotnet_runtime_2.2.4_win_x64.msi.log'

[38EC:3578][2019-05-04T14:17:02]i000: Setting string variable 'WixBundleLog_dotnet_runtime_2.2.4_win_x64.msi' to value 'C:\Users\ME\AppData\Local\Temp\Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_000_dotnet_runtime_2.2.4_win_x64.msi.log'

[38EC:3578] [2019-05-04T14:17:02] i000:将字符串变量'WixBundleRollbackLog_dotnet_hostfxr_2.2.4_win_x64.msi'设置为值'C:\ Users \\ \\ ME\AppData \ Local \Temp \ Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_001_dotnet_hostfxr_2.2.4_win_x64.msi_rollback.log'

[38EC:3578][2019-05-04T14:17:02]i000: Setting string variable 'WixBundleRollbackLog_dotnet_hostfxr_2.2.4_win_x64.msi' to value 'C:\Users\ME\AppData\Local\Temp\Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_001_dotnet_hostfxr_2.2.4_win_x64.msi_rollback.log'

[38EC:3578 ] [2019-05-04T14:17:02] i000:将字符串变量'WixBundleLog_dotnet_hostfxr_2.2.4_win_x64.msi'设置为值'C:\ Users \ ME\AppData \ Local \Temp \ Microsoft_.NET_Core_SDK_2 .2.203_(x64)_20190504141659_001_dotnet_hostfxr_2.2.4_win_x64.msi.log'

[38EC:3578][2019-05-04T14:17:02]i000: Setting string variable 'WixBundleLog_dotnet_hostfxr_2.2.4_win_x64.msi' to value 'C:\Users\ME\AppData\Local\Temp\Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_001_dotnet_hostfxr_2.2.4_win_x64.msi.log'

[38EC:3578] [2019-05-04T14:17:02] i000:设定字符串变量'WixBundleRollbackLog_dotnet_host_2.2.4_win_x64.msi'为值' C:\ Users \ ME\AppData \ Local \Temp \ Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_002_dotnet_host_2.2.4_win_x64.msi_rollback.log'

[38EC:3578][2019-05-04T14:17:02]i000: Setting string variable 'WixBundleRollbackLog_dotnet_host_2.2.4_win_x64.msi' to value 'C:\Users\ME\AppData\Local\Temp\Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_002_dotnet_host_2.2.4_win_x64.msi_rollback.log'

[38EC:3578] [2019-05-04T14:17:02] i000:将字符串变量'WixBundleLog_dotnet_host_2.2.4_win_x64.msi'设置为值'C:\Users\ME\AppData \ Local \ Temp\Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_002_dotnet_host_2.2.4_win_x64.msi.log'

[38EC:3578][2019-05-04T14:17:02]i000: Setting string variable 'WixBundleLog_dotnet_host_2.2.4_win_x64.msi' to value 'C:\Users\ME\AppData\Local\Temp\Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_002_dotnet_host_2.2.4_win_x64.msi.log'

[38EC:3578] [2019-05-04T14:17: 02] i000:将字符串变量'WixBundleRollbackLog_dotnet_sdk_internal_2.2.203_win_x64.msi'设置为值'C:\Users\ME\AppData \ Local \Temp \ Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_003_dotnet_sdk_internal_2.2.203_win_x64 .msi_rollback.log'

[38EC:3578][2019-05-04T14:17:02]i000: Setting string variable 'WixBundleRollbackLog_dotnet_sdk_internal_2.2.203_win_x64.msi' to value 'C:\Users\ME\AppData\Local\Temp\Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_003_dotnet_sdk_internal_2.2.203_win_x64.msi_rollback.log'

[38EC:3578] [2019-05-04T14:17:02] i000:将字符串变量'WixBundleLog_dotnet_sdk_internal_2.2.203_win_x64.msi'设置为值'C:\Users\ME\AppData \本地\\Temp\Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_003_dotnet_sdk_internal_2.2.203_win_x64.msi.log'

[38EC:3578][2019-05-04T14:17:02]i000: Setting string variable 'WixBundleLog_dotnet_sdk_internal_2.2.203_win_x64.msi' to value 'C:\Users\ME\AppData\Local\Temp\Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_003_dotnet_sdk_internal_2.2.203_win_x64.msi.log'

[38EC:3578] [2019-05-04T14:17 :02] i052:条件'VersionNT64 AND(NOT OPT_NO_SHAREDFX)'的计算结果为真。

[38EC:3578][2019-05-04T14:17:02]i052: Condition 'VersionNT64 AND (NOT OPT_NO_SHAREDFX)' evaluates to true.

[38EC:3578] [2019-05-04T14:17:02] i000 :将字符串变量'WixBundleRollbackLog_AspNetCoreSharedFramework_x64'设置为值'C:\Users\ME\AppData \ Local \Temp \ Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_004_AspNetCoreSharedFramework_x64_rollback.log'

[38EC:3578][2019-05-04T14:17:02]i000: Setting string variable 'WixBundleRollbackLog_AspNetCoreSharedFramework_x64' to value 'C:\Users\ME\AppData\Local\Temp\Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_004_AspNetCoreSharedFramework_x64_rollback.log'

[38EC:3578] [2019-05-04T14:17:02] i000:将字符串变量'WixBundleLog_AspNetCoreSharedFramework_x64'设置为值'C:\Users\ME\AppData \ Local \ Temp\Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_004_AspNetCoreSharedFramework_x64.log'

[38EC:3578][2019-05-04T14:17:02]i000: Setting string variable 'WixBundleLog_AspNetCoreSharedFramework_x64' to value 'C:\Users\ME\AppData\Local\Temp\Microsoft_.NET_Core_SDK_2.2.203_(x64)_20190504141659_004_AspNetCoreSharedFramework_x64.log'

[38EC:3578] [2019-05-04T14:17:02] i201:已计划package:dotnet_runtime_2.2.4_win_x64.msi,state:Absent,default re问:现在,请求:请执行:执行:安装,回滚:卸载,缓存:是,不缓存:否,依赖:注册

[38EC:3578][2019-05-04T14:17:02]i201: Planned package: dotnet_runtime_2.2.4_win_x64.msi, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register

[38EC:3578] [2019 -05-04T14:17:02] i201:计划包:dotnet_hostfxr_2.2.4_win_x64.msi,状态:缺席,请求默认:存在,请求:执行,执行:安装,回滚:卸载,缓存:是,否则:否,依赖:注册

[38EC:3578][2019-05-04T14:17:02]i201: Planned package: dotnet_hostfxr_2.2.4_win_x64.msi, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register

[38EC:3578] [2019-05-04T14:17:02] i201:计划包:dotnet_host_2.2.4_win_x64.msi,州:缺席,默认请求:Present,ba requested:Present,execute:Install,rollback:uninstall,cache:Yes,uncache:No,dependency:Register

[38EC:3578][2019-05-04T14:17:02]i201: Planned package: dotnet_host_2.2.4_win_x64.msi, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register

[38EC:3578] [2019-05-04T14:17:02] i201:计划包:dotnet_sdk_internal_2.2.203_win_x64.msi,状态:缺席,请求默认:存在,请求:执行,执行:安装,回滚:卸载,缓存:是,解冻:不,依赖:注册

[38EC:3578][2019-05-04T14:17:02]i201: Planned package: dotnet_sdk_internal_2.2.203_win_x64.msi, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register

[38EC:3578] [2019-05-04T14:17:02] i201:计划包:AspNetCoreS haredFramework_x64,state:Absent,default requested:Present,ba requested:Present,execute:Install,rollback:Uninstall,cache:Yes,uncache:No,dependency:Register

[38EC:3578][2019-05-04T14:17:02]i201: Planned package: AspNetCoreSharedFramework_x64, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register

[38EC:3578] [2019-05-04T14:17:02] i299:计划完成,结果:0x0

[38EC:3578][2019-05-04T14:17:02]i299: Plan complete, result: 0x0

[38EC:3578] [2019-05-04T14 :17:02] i300:申请开始

[38EC:3578][2019-05-04T14:17:02]i300: Apply begin

[38EC:3578] [2019-05-04T14:17:02] i010:启动升级的引擎进程。

[38EC:3578][2019-05-04T14:17:02]i010: Launching elevated engine process.

[38EC:3578] [2019-05-04T14:17:02] e000:错误0x800704c7:无法启动提升的子进程:C:\ WINDOWS \ Temp \ {B183CA6D-FCEB-485A-8E10-F90553041CF6} \.be\dotnet-sdk-2.2.203-win-x64.exe

[38EC:3578][2019-05-04T14:17:02]e000: Error 0x800704c7: Failed to launch elevated child process: C:\WINDOWS\Temp\{B183CA6D-FCEB-485A-8E10-F90553041CF6}\.be\dotnet-sdk-2.2.203-win-x64.exe

[38EC:3578] [2019-05-04T14:20:52] e000:错误0x80070642:无法提升。

[38EC:3578][2019-05-04T14:20:52]e000: Error 0x80070642: Failed to elevate.

[38EC:3578] [2019-05-04T14:20:52 ] e000:错误0x80070642:无法实际提升。

[38EC:3578][2019-05-04T14:20:52]e000: Error 0x80070642: Failed to actually elevate.

[38EC:3578] [2019-05-04T14:20:52] e000:错误0x80070642:无法提升。

[38EC:3578][2019-05-04T14:20:52]e000: Error 0x80070642: Failed to elevate.

[38EC:3578] [2019-05-04T14:2 0:52] i399:申请完成,结果:0x80070642,重启:无,ba请求重启: 否

[38EC:3578][2019-05-04T14:20:52]i399: Apply complete, result: 0x80070642, restart: None, ba requested restart:  No


我注意到安装各种其他部件的问题软件所有失败的似乎都是试图以提升的权限启动其他进程的那些。

I have noticed problems installing various other pieces of software. All of the ones that fail seem to be ones which attempt to launch some other process with elevated privileges.

推荐答案

欢迎来到MSDN论坛。

有几个原因可能会导致您收到用户取消安装的错误代码。以下是解决
问题的一些解决方法:

如果有的话请随时告诉我适用于你。

真诚

可能


这篇关于安装.NET Core SDK失败。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 00:09