Visual Studio 2019社区版安装程序无法启动

5
我尝试升级Visual Studio 2019社区版,但是Visual Studio安装程序无法启动。我尝试了很多方法,包括卸载现有版本、使用离线版本等,但现在我没有可用的Visual Studio版本。
这是引导程序的日志内容:
Beginning of the log. Start Time: 2019-05-25 10:04:39
VisualStudio Bootstrapper:2019-05-25 10:04:40: Commandline arguments = --env,_SFX_CAB_EXE_PACKAGE:E:\Download\vs_community.exe _SFX_CAB_EXE_ORIGINALWORKINGDIR:E:\Download
VisualStudio Bootstrapper:2019-05-25 10:04:40: Parent process name = vs_community
VisualStudio Bootstrapper:2019-05-25 10:04:40: Parent process product version = 16.1.28922.388
VisualStudio Bootstrapper:2019-05-25 10:04:40: CampaignId = 
VisualStudio Bootstrapper:2019-05-25 10:04:40: ResponseId not available in 'vs_setup_bootstrapper.config'. Trying to parse filename.
VisualStudio Bootstrapper:2019-05-25 10:04:40: loading config settings: -update --update --layout -offline --offline --locale --layout --originalworkingdir --installLayoutPath --env
VisualStudio Bootstrapper:2019-05-25 10:04:45: DownloadURL = https://aka.ms/vs/16/release/installer
VisualStudio Bootstrapper:2019-05-25 10:04:45: InstallLocation = C:\Program Files (x86)\Microsoft Visual Studio\Installer
VisualStudio Bootstrapper:2019-05-25 10:04:45: OfflineFilePath = 
VisualStudio Bootstrapper:2019-05-25 10:04:45: LayoutLocation = 
VisualStudio Bootstrapper:2019-05-25 10:04:45: ExecutableArguments = /finalizeInstall install --in "C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_setup_bootstrapper_201905251004409923.json" --locale en-US --activityId "65140cc5-fa4c-470e-9740-8005502ed51e"
VisualStudio Bootstrapper:2019-05-25 10:04:45: OSVersion = Microsoft Windows NT 6.1.7601 Service Pack 1
VisualStudio Bootstrapper:2019-05-25 10:04:45: Starting to detect the existing VS and .NET...
VisualStudio Bootstrapper:2019-05-25 10:04:45: Finished detecting the existing VS and .Net
VisualStudio Bootstrapper:2019-05-25 10:05:04: Beginning file download. File = https://aka.ms/vs/16/release/installer.
VisualStudio Bootstrapper:2019-05-25 10:05:04: Download requested: https://aka.ms/vs/16/release/installer
VisualStudio Bootstrapper:2019-05-25 10:05:05: Attempting download 'https://aka.ms/vs/16/release/installer' using engine 'WebClient'
VisualStudio Bootstrapper:2019-05-25 10:05:05: Uri 'https://aka.ms/vs/16/release/installer' redirected to 'https://download.visualstudio.microsoft.com/download/pr/8e169392-7f87-4d2e-a6e9-0c510272d9df/d4e01b060095407608d193d7143f6e4a/vs_installer.opc'
VisualStudio Bootstrapper:2019-05-25 10:11:18: Package signature verification returned Success for path: C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_installer\d.uhy\vs_installer.opc
VisualStudio Bootstrapper:2019-05-25 10:11:18: Download of 'https://aka.ms/vs/16/release/installer' succeeded using engine 'WebClient'
VisualStudio Bootstrapper:2019-05-25 10:11:18: Current OptIn value is 1
VisualStudio Bootstrapper:2019-05-25 10:11:18: Extracting file 'vs_installer.version.json' from package stream.
VisualStudio Bootstrapper:2019-05-25 10:11:18: File found 'vs_installer.version.json' in package stream.
VisualStudio Bootstrapper:2019-05-25 10:11:18: Comparing client candidate version '2.1.3125.514' to autoSelfUpdateMinVersion '2.1.3125.514'
VisualStudio Bootstrapper:2019-05-25 10:11:22: Beginning extracting files to C:\Program Files (x86)\Microsoft Visual Studio\Installer.
VisualStudio Bootstrapper:2019-05-25 10:11:22: Extracting 'C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_installer\d.uhy\vs_installer.opc' to 'C:\Program Files (x86)\Microsoft Visual Studio\Installer'.
VisualStudio Bootstrapper:2019-05-25 10:11:26: Successfully extracted 'C:\Program Files (x86)\Microsoft Visual Studio\Installer'.
VisualStudio Bootstrapper:2019-05-25 10:11:26: Start named pipe: 91ba8373-9502-45d1-8629-a80eadc83d01
VisualStudio Bootstrapper:2019-05-25 10:11:26: Starting VS setup process 'vs_installer.exe' with arguments '/finalizeInstall install --in "C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_setup_bootstrapper_201905251004409923.json" --locale en-US --activityId "65140cc5-fa4c-470e-9740-8005502ed51e" --pipe "91ba8373-9502-45d1-8629-a80eadc83d01"'.
VisualStudio Bootstrapper:2019-05-25 10:11:26: VS setup process C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe started. All done.
VisualStudio Bootstrapper:2019-05-25 10:11:26: VS setup process starting. Exiting with code 0
VisualStudio Bootstrapper:2019-05-25 10:12:06: Pipe disconnected.
VisualStudio Bootstrapper:2019-05-25 10:12:06: Bootstrapper Successfully completed.

我希望有人能帮我找到解决方案。

也许可以尝试使用:InstallCleanup.exe。还有这篇博客文章故障排除程序 - Stein Åsmul
如果所有的方法都失败了,也许可以使用虚拟机?显然是肯定的,只是提醒一下 - 在紧急情况下可能会有所帮助。而且,在升级主机之前,使用虚拟机进行未来更新的测试也更容易吧?不过安装需要很长时间。 - Stein Åsmul
谢谢你的回答。我已经尝试了installCleanup,但还是没有用。我没有更多的时间进行试错,所以我重新安装了Windows和Visual Studio。 - Iwan Trisnadi
可能这样做是个好主意。最后一条评论:我曾经在虚拟机上安装了没有添加任何选项的Visual Studio。然后我添加了单独的包:**.NET Framework 3.5 Development Tools.NET Compiler Platform SDK**。这对我来说足以让WiX运行(是的,我添加了WiX和Votive作为最后一个包),并且我有一个简单、轻量级的Visual Studio版本来测试升级(基本上只有Visual Studio编辑器GUI和Votive)。可能有用?只是想提一下。2019年可能会有所不同 - 我使用的是2017年。 - Stein Åsmul
4个回答

9

在vs_installer.exe和vs_installershell.exe上的证书可能会出现一些问题。安装这个KB3004394可能会有所帮助。


这并没有回答问题。一旦您拥有足够的声望,您就可以评论任何帖子;相反,提供不需要询问者澄清的答案。- 来自审核 - DavidJ
8
我想分享一下我是如何解决这个问题的,希望可以帮助其他人节省几个小时的时间。如果您认为这没有用,可以自由删除。 顺便说一下,提问者的帖子中并没有任何问题,只是他的希望。 - Seishin
4
这对我来说是正确的答案。它有效了!非常感谢你。 - Xtro
2
这个答案也解决了我的问题。我使用的是Windows 7-x64-SP1。谢谢!@Seishin - Michael
只想说我也一样!完美解决了(Win 7 Home Premium x86),感谢你的答案。原始问题:“安装程序中下载文件时出错”。 - German Garcia

0

我最初尝试将vs_installer.exe重命名为vs_installer.old,但对我来说没有起作用。当我在安装选项卡上取消选中“安装后保留下载缓存”时,关闭按钮变成了“修改”。


0
今晚我在尝试在我的笔记本电脑(Windows 10 Pro Build 19042)上安装Visual Studio 2019社区版时遇到了完全相同的问题。在近一个小时的绝望尝试后(包括搞乱组件服务并将我的用户添加到COM+应用程序的本地访问权限中),我通过将安装程序文件从“下载”文件夹移动到磁盘上的其他位置来使其工作。然后,它就可以工作了。
这表明,如果从名称中包含UTF-8字符的路径/文件夹运行安装程序,则安装程序无法启动(最初我使用的是“C:\Users\Dragoș\Downloads”)。由于每次我将安装程序放置在任何包含UTF-8字符的文件夹中都能重现此问题,因此我在Microsoft上提交了一个错误报告:https://developercommunity.visualstudio.com/t/Visual-Studio-2019-installer-does-not-st/1411874 我不知道这种情况是否符合您的上下文,但无论如何,我希望它能帮助某些人走过难关。

0

我刚遇到了同样的问题。我查阅了关于重命名'/installer'文件夹的建议,但对我没有用。最终我删除了'vs_installer.exe'文件,并使用了其中一个下载器。

在此输入图片描述

希望能有所帮助。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接