询问者
刚下载的vs2015总是显示需要重新安装,该怎么办?

问题
全部回复
-
你好,
从你的问题描述来看,安装包可能没有问题,可能和你的用户账号权限有关。
请下载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 具体步骤请参考:
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.- 已编辑 宝宝徐Moderator 2016年11月29日 6:20
- 已建议为答案 Jack Zhai-MSFTMicrosoft contingent staff, Moderator 2016年12月7日 1:36
-
上面的这些步骤是用来修复你电脑商损坏的注册表文件信息。之后建议你下载一个完整的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.aspxMSDN 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.- 已建议为答案 Jack Zhai-MSFTMicrosoft contingent staff, Moderator 2016年12月7日 1:36