none
刚下载的vs2015总是显示需要重新安装,该怎么办? RRS feed

全部回复

  • 可能是已经安装的组件找不到,需要重新运行安装程序,以安装这些必备的系统组件。

    专注于.NET ERP/CRM开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms

    2016年11月28日 8:04
  • 重新安装几次了也依然这样显示
    2016年11月28日 16:59
  • 你好,

    从你的问题描述来看,安装包可能没有问题,可能和你的用户账号权限有关。

    请下载SubInAcl这个工具,去修复文件注册表权限问题,

    1.下载 SubInACL tool 并且安装. 默认情况下这会安装在 c:\Program Files\Windows Resource Kits\Tools

    2.在开始菜单,选择“运行”,用管理员权限运行cmd。

    3.在命令行提示符窗口, 输入notepad reset.cmd ,选择进入Notepad.exe,创建一个reset.cmd 命名的文本文件。

    3.将如下文本拷贝到reset.cmd里面并且保存(或者从this location on my file server 拷贝)。

    @echo off
    title Resetting ACLs...
    setlocal
    echo.
    echo Determine whether we are on an 32 or 64 bit machine
    echo.
    if "%PROCESSOR_ARCHITECTURE%"=="x86" if "%PROCESSOR_ARCHITEW6432%"=="" goto x86
    set ProgramFilesPath=%ProgramFiles(x86)%
    goto startResetting
    :x86
    set ProgramFilesPath=%ProgramFiles%
    :startResetting
    echo.
    if exist "%ProgramFilesPath%\Windows Resource Kits\Tools\subinacl.exe" goto filesExist
    echo ***ERROR*** - Could not find file %ProgramFilesPath%\Windows Resource Kits\Tools\subinacl.exe. Double-check that SubInAcl is correctly installed and re-run this script.
    goto END
    :filesExist
    pushd "%ProgramFilesPath%\Windows Resource Kits\Tools"
    echo.
    echo Resetting ACLs...
    echo (this may take several minutes to complete)
    echo.
    echo IMPORTANT NOTE: For this script to run correctly, you must change
    echo the values named YOURUSERNAME to be the Windows user account that
    echo you are logged in with.
    echo.
    echo ==========================================================================
    echo.
    echo.
    subinacl.exe /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators > %temp%\subinacl_output.txt
    echo.
    echo.
    subinacl.exe /keyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators >> %temp%\subinacl_output.txt
    echo.
    echo.
    subinacl.exe /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt
    echo.
    echo.
    subinacl.exe /keyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt
    echo.
    echo.
    subinacl.exe /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt
    echo.
    echo.
    subinacl.exe /keyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt
    echo.
    echo.
    echo System Drive...
    subinacl.exe /subdirectories %ProgramFilesPath%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt
    echo.
    echo.
    echo Windows Directory...
    subinacl.exe /subdirectories %windir%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt
    echo.
    echo.
    echo ==========================================================================
    echo.
    echo FINISHED.
    echo.
    echo Press any key to exit . . .
    pause >NUL
    popd
    :END

    具体步骤请参考:

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/27fed8bb-7ffa-40e5-a920-3ed0e2bdac72/visual-studio-2013-cannot-find-one-or-more-components?forum=visualstudiogeneral


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    2016年11月29日 6:18
    版主
  • 完成这些步骤之后就可以运行了吗?

    2016年11月29日 15:45
  • 上面的这些步骤是用来修复你电脑商损坏的注册表文件信息。之后建议你下载一个完整的VS镜像文件安装VS,用FCIV这个工具验证ISO的哈希值,确认ISO安装包是完整的再进行安装。

    这是使用工具和使用方法链接
     http://support.microsoft.com/kb/841290

    微软官方下载链接:
    https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx

    哈希值链接
    https://www.visualstudio.com/en-us/downloads/visual-studio-2015-iso-sha1-vs.aspx


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2016年11月30日 1:24
    版主