解压缩后将无法运行Visual Studio 2017安装程序 [英] Visual studio 2017 installer won't run after extracting

查看:420
本文介绍了解压缩后将无法运行Visual Studio 2017安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2017 community.exe提取到临时后将无法运行.

visual studio 2017 community.exe won't run after extracting to the temp.

操作系统:Windows 10 x64bit

OS: windows 10 x64bit

设置:社区版本

表示,

日志的开头.开始时间:3/26/2017 1:14:54 AM VisualStudio引导程序:3/26/2017 1:14:54 AM:当前Optin根路径不存在
VisualStudio引导程序:3/26/2017 1:14:55 AM:命令行参数=

Beginning of the log. Start Time: 3/26/2017 1:14:54 AM VisualStudio Bootstrapper:3/26/2017 1:14:54 AM: Current Optin root path does not exists
VisualStudio Bootstrapper:3/26/2017 1:14:55 AM: Commandline arguments =

和dd_vs_community_decompression_log说
[3/26/2017,11:17:47] ===开始记录:2017/03/26 11:17:47 ===
[3/26/2017,11:17:47]可执行文件:C:\ Users \ Sameera \ Downloads \ Programs \ vs_community.exe v15.0.26228.0
[3/26/2017,11:17:47] ---日志记录级别:标准---
[3/26/2017,11:17:47]已选择目录
'C:\ Users \ Sameera \ AppData \ Local \ Temp \ 4ceac4b7b9cd9fdf2489526c66 \'用于文件提取
[3/26/2017,11:17:48]将文件提取到:C:\ Users \ Sameera \ AppData \ Local \ Temp \ 4ceac4b7b9cd9fdf2489526c66 \
[3/26/2017,11:17:48]提取花费了360毫秒
[3/26/2017,11:17:48]执行提取的软件包:'vs_bootstrapper_d15 \ vs_setup_bootstrapper.exe'和命令行''
[3/26/2017,11:18:10]整个Box执行退出,结果代码:0x0
[3/26/2017,11:18:10]启动提取的应用程序,结果代码为:0xc000000d
[3/26/2017,11:18:10] ===记录已停止:2017/03/26 11:18:10 ===

and the dd_vs_community_decompression_log says
[3/26/2017, 11:17:47] === Logging started: 2017/03/26 11:17:47 ===
[3/26/2017, 11:17:47] Executable: C:\Users\Sameera\Downloads\Programs\vs_community.exe v15.0.26228.0
[3/26/2017, 11:17:47] --- logging level: standard ---
[3/26/2017, 11:17:47] Directory
'C:\Users\Sameera\AppData\Local\Temp\4ceac4b7b9cd9fdf2489526c66\' has been selected for file extraction
[3/26/2017, 11:17:48] Extracting files to: C:\Users\Sameera\AppData\Local\Temp\4ceac4b7b9cd9fdf2489526c66\
[3/26/2017, 11:17:48] Extraction took 360 milliseconds
[3/26/2017, 11:17:48] Executing extracted package: 'vs_bootstrapper_d15\vs_setup_bootstrapper.exe ' with commandline ' '
[3/26/2017, 11:18:10] The entire Box execution exiting with result code: 0x0
[3/26/2017, 11:18:10] Launched extracted application exiting with result code: 0xc000000d
[3/26/2017, 11:18:10] === Logging stopped: 2017/03/26 11:18:10 ===

找不到合适的解决方案.

can't find proper solution..

推荐答案

通过Microsoft支持进行了4天的故障排除后,我能够解决我的问题.我正在使用戴尔笔记本电脑进行开发,支持技术人员认为戴尔的一项服务正在导致Winmgmt服务出现问题.

I was able to resolve my problem after 4 days of troubleshooting with Microsoft support. I'm developing on a Dell laptop and the support technician believes one of the Dell services was causing issues with the winmgmt service.

以下是无法运行的命令.然后,在确保保存了操作系统还原点之后,我们发出了/resetRepository命令.之后,VS 2017 Pro安装程序可以执行而没有错误.

Below is a command that failed to run. Then after making sure we had an OS restore point saved, we issued the /resetRepository command. After that, the VS 2017 Pro installer was able to execute without error.

在下面添加确切的步骤和代码示例:

Adding the exact steps and code sample below:

步骤1:创建Windows系统还原点.

Step 1: Create a Windows system restore point.

步骤2:在具有管理权限或特权提升的命令提示符下,执行以下命令:net stop winmgmt

Step 2: From the command prompt with administrative rights or elevated privileges, execute the following command: net stop winmgmt

第3步:打开Windows资源管理器,找到C:\ windows \ system32 \ WBEM \文件夹的路径,并将Repository文件夹重命名为RepositoryOLD之类的其他名称(右键单击并选择重命名文件夹").

Step 3: Open a Windows Explorer and locate the path to C:\windows\system32\WBEM\ folder and rename the Repository folder to something else like RepositoryOLD (right click and choose 'Rename Folder').

第4步:重新启动计算机

Step 4: restart the computer

步骤5:在具有管理权限或特权提升的命令提示符下,执行以下命令:net stop winmgmt

Step 5: From the command prompt with administrative rights or elevated privileges, execute the following command: net stop winmgmt

C:\>net stop winmgmt
The Windows Management Instrumentation service is stopping.
The Windows Management Instrumentation service could not be stopped.    

步骤6:在具有管理权限或特权提升的命令提示符下,执行以下命令:winmgmt/resetRepository

Step 6: From the command prompt with administrative rights or elevated privileges, execute the following command: winmgmt /resetRepository

C:\>winmgmt /resetRepository
WMI repository has been reset

第7步:重新启动计算机.

Step 7: restart the computer.

希望这可以帮助遇到类似Visual Studio 2017安装程序问题的任何人.

Hope this helps anyone with a similar Visual Studio 2017 installer issue.

这篇关于解压缩后将无法运行Visual Studio 2017安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆