错误1316.指定的帐户已存在。 Visual Studio 2017:无法安装包。返回代码1603

时间:2018-01-24 01:04:32

标签: visual-studio error-handling visual-studio-2017 return-code

需要为学校安装Visual Studio,但遇到此错误和另一个错误。

Visual Studio fails to install "Microsoft.Net.CoreUWP,version=1.1.32" and "Win10SDK_10.0.16299,version=10.0.16299.0".

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Log for "Microsoft.Net.CoreUWP,version=1.1.32" :
Package 'Microsoft.Net.CoreUWP,version=1.1.32' failed to install.
    Search URL
        https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.Net.CoreUWP;PackageAction=Install;ReturnCode=1316
    Details
        MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Net.CoreUWP,version=1.1.32\netfx_NETCoreUWP.msi, Properties:  REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1  MSIFASTINSTALL="7" 
        Return code: 1603
        Return code details: Fatal error during installation.
        Message Id: 1316
        Message Details: The specified account already exists.

   Log
        C:\Users\Kaleb\AppData\Local\Temp\dd_setup_20180123192925_162_Microsoft.Net.CoreUWP.log
    Impacted workloads
        Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=15.0.27128.1)
    Impacted components
        Universal Windows Platform tools (Microsoft.VisualStudio.Component.UWP.Support,version=15.0.26906.1)
        Universal Windows Platform tools for Cordova (Microsoft.VisualStudio.ComponentGroup.UWP.Cordova,version=15.0.27005.2)
        Universal Windows Platform tools for Xamarin (Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin,version=15.0.27005.2)


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Log for "Win10SDK_10.0.16299,version=10.0.16299.0" :
Package 'Win10SDK_10.0.16299,version=10.0.16299.0' failed to install.
    Search URL
        https://aka.ms/VSSetupErrorReports?q=PackageId=Win10SDK_10.0.16299;PackageAction=Install;ReturnCode=1316
    Details
        Command executed: "c:\windows\syswow64\\windowspowershell\v1.0\powershell.exe" -NonInteractive -NoLogo -NoProfile -ExecutionPolicy Bypass -InputFormat None "$ErrorActionPreference="""Stop"""; $VerbosePreference="""Continue"""; $CeipSetting="""on"""; $ScriptPath="""C:\ProgramData\Microsoft\VisualStudio\Packages\Win10SDK_10.0.16299,version=10.0.16299.0\WinSdkInstall.ps1"""; $SetupExe="""winsdksetup.exe"""; $SetupLogFolder="""windowssdk"""; $PackageId="""Win10SDK_10.0.16299"""; $LogFile="""C:\Users\Kaleb\AppData\Local\Temp\dd_setup_20180123192925_181_Win10SDK_10.0.16299.log"""; $SetupParameters="""/features OptionId.AvrfExternal OptionId.UWPManaged OptionId.WindowsSoftwareLogoToolkit OptionId.SigningTools OptionId.UWPLocalized OptionId.UWPCPP OptionId.DesktopCPPx64 OptionId.DesktopCPPx86 OptionID.DesktopCPPARM OptionID.DesktopCPPARM64 OptionId.MSIInstallTools /quiet /norestart"""; (gc $ScriptPath | out-string) | Invoke-Expression; if (!$?) { exit 1603 } elseif ($LastExitCode) { exit $LastExitCode }"
        Return code: 1316
        Return code details: The specified account already exists.
    Log
        C:\Users\Kaleb\AppData\Local\Temp\dd_setup_20180123192925_181_Win10SDK_10.0.16299.log
    Impacted workloads
        Desktop development with C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=15.0.27102.0)
        Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=15.0.27128.1)
    Impacted components
        Universal Windows Platform tools (Microsoft.VisualStudio.Component.UWP.Support,version=15.0.26906.1)
        Universal Windows Platform tools for Cordova (Microsoft.VisualStudio.ComponentGroup.UWP.Cordova,version=15.0.27005.2)
        Universal Windows Platform tools for Xamarin (Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin,version=15.0.27005.2)
        Visual C++ tools for CMake (Microsoft.VisualStudio.Component.VC.CMake.Project,version=15.0.27019.1)
        Windows 10 SDK (10.0.16299.0) for Desktop C++ [x86 and x64] (Microsoft.VisualStudio.Component.Windows10SDK.16299.Desktop,version=15.0.27128.1)
        Windows 10 SDK (10.0.16299.0) for UWP: C#, VB, JS (Microsoft.VisualStudio.Component.Windows10SDK.16299.UWP,version=15.0.27128.1)
        Windows 10 SDK (10.0.16299.0) for UWP: C++ (Microsoft.VisualStudio.Component.Windows10SDK.16299.UWP.Native,version=15.0.27128.1)

1 个答案:

答案 0 :(得分:2)

<强>更新

this page中有一些关于Error 1316. the specified account already exists的信息:

  

您是否安装了完全管理权限?做出一定   你是,右键单击安装程序并选择Run as   管理员

           

下一个最可能的解释是一些错误的注册表项:

     

Microsoft提供了一种解决这些安装和卸载的工具   问题;请参阅 Fix problems that block programs from being installed or removed

     

修复它工具询问您要尝试的内容时   安装,选择“未列出”,除非您安装完全相同   以前安装的版本。例如,7.5.0和   7.5.1将在fix-it工具的列表中显示为7.5,但它们是不同的安装程序,所以如果你是的话,你会选择“not listed”   安装7.5.1而不是7.5.0。

较旧的部分:

如果上述解决方案不适合您,请阅读以下部分:

根据您提供的日志,在这种情况下似乎» Visual Studio安装程序程序需要从您的netfx_NETCoreUWP.msiWin10SDK中卸载计算机,但它不能这样做,所以你可以帮助它手动卸载(有风险)

  1. 关闭 Visual Studio安装程序程序
  2. 转到C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Net.CoreUWP,version=1.1.32
  3. 右键点击netfx_NETCoreUWP.msi,然后选择卸载
    1. 对于第二个错误,我认为您应该从Programs and Features打开Control Panel并从那里卸载Microsoft Software Development Kit - Windows 10.0.16299

    2. 再次运行 Visual Studio安装程序程序并继续...