zoukankan      html  css  js  c++  java
  • Windows Server 2012 R2 Standard x64 deploy Visual Studio 2015 Application

    When I run the Server application on Windows Server 2012 R2 operation system.

    I meet the error:MSVCP140D.dll is missing from your computer.

    Then I download it from MS site :

    https://www.microsoft.com/en-US/download/details.aspx?id=48145

    But I install vc_redist.x64.exe failed.

    Then I got that Windows8.1-KB2999226-x64.msu should be installed to solve it.

    But during installation I see the following error.

    C:>DISM.exe /Online /Add-Package /PackagePath:D:install_packageWindows8.1-KB299926-x64.msu

    Processing 1 of 1 An error occurred D:install_packagetWindows8.1-KB299926-x64msu Error:0x8007003

    Error:3

    When I open the file c:windowslogsdismdism.log, I saw this:


    DISM DISM Provider Store: PID=7296 TID=7012 Getting Provider DISM Package Manager - CDISMProviderStore::GetProvider

    2018-01-17 18:12:11, Info DISM DISM Provider Store: PID=7296 TID=7012 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider

    2018-01-17 18:12:11, Info DISM DISM Package Manager: PID=7296 TID=7012 Processing the top level command token(add-package). - CPackageManagerCLIHandler::Private_ValidateCmdLine

    2018-01-17 18:12:11, Info DISM DISM Package Manager: PID=7296 TID=7012 Attempting to route to appropriate command handler. - CPackageManagerCLIHandler::ExecuteCmdLine

    2018-01-17 18:12:11, Info DISM DISM Package Manager: PID=7296 TID=7012 Routing the command... - CPackageManagerCLIHandler::ExecuteCmdLine

    2018-01-17 18:12:11, Info DISM DISM Package Manager: PID=7296 TID=7012 Encountered the option "packagepath" with value "D:install_packageWindows8.1-KB2999226-x64.cab" -ckageManagerCLIHandler::Private_GetPackagesFromCommandLine

    2018-01-17 18:12:11, Error DISM DISM Package Manager: PID=7296 TID=7012 Incorrect parameter D:install_packageWindows8.1-KB2999226-x64.cab - path not found - CDISMPackageManager::Internal_CreatePackageByPath(hr:0x80070003)

    2018-01-17 18:12:11, Error DISM DISM Package Manager: PID=7296 TID=7012 Failed to get the underlying CBS package. - CDISMPackageManager::OpenPackageByPath(hr:0x80070003)

    2018-01-17 18:12:11, Error DISM DISM Package Manager: PID=7296 TID=7012 Failed to open the package at location: "D:install_packageWindows8.1-KB2999226-x64.cab" - CPackageManagerCLIHandler::ProcessPackagePath(hr:0x80070003)

    2018-01-17 18:12:11, Error DISM DISM Package Manager: PID=7296 TID=7012 Failed while processing command add-package. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x80070003)

    2018-01-17 18:12:11, Info DISM DISM Package Manager: PID=7296 TID=7012 Further logs for online package and feature related operations can be found at %WINDIR%logsCBScbs.log - CPackageManagerCLIHandler::ExecuteCmdLine


    Solution:

    Change the directory.
    My Windows8.1-KB2999226-x64.msu is under directory(you can search in the windwos explorer):

    C:ProgramDataPackage CacheFC6260C33678BB17FB8B88536C476B4015B7C5E9packagesPatchx64

    copy this file (Windows8.1-KB2999226-x64.msu) to a folder you like, such as:

    1.Create a C: emp2999226 folder

    1. Use the following command to extract the contents of the MSU file:
      Expand –F:* c: emp2999226Windows8.1-KB2999226-x64.msu c: emp2999226

    3.Now try the following command(as administrator):

    D:install_package>DISM.exe /Online /Add-Package /PackagePath:C:Temp2999226Windows8.1-KB2999226-x64.cab

    Then I success in completing the operation.

    4.Run the following command:

    D:install_pcakage>vc_redist.x64.exe /repair

    Then click repair, you will see the vc_redist.x64.exe is completely installed.

    5.reboot the computer.(maybe you do not need it)

    Congratulations!!!!

    I hope the article will help everyone.

    [Reference]

    https://answers.microsoft.com/en-us/windows/forum/windows8_1-files/msvcp140ddll-is-missing-from-your-computer/c253126e-8f11-45d0-828d-8ede40c3126a?auth=1

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/64baed8c-b00c-40d5-b19a-99b26a11516e/visual-c-redistributable-for-visual-studio-2015-rc-fails-on-windows-server-2012?forum=vssetup

    https://blogs.technet.microsoft.com/askcore/2011/02/15/how-to-use-dism-to-install-a-hotfix-from-within-windows/

    转载本Blog文章请注明出处,否则,本作者保留追究其法律责任的权利。 本人转载别人或者copy别人的博客内容的部分,会尽量附上原文出处,仅供学习交流之用,如有侵权,联系立删。
  • 相关阅读:
    100个高质量Java开发者博客
    javascript的trigger事件
    js正则函数match、exec、test、search、replace、split使用集合
    Openssl verify命令
    Openssl x509命令
    Openssl req命令
    Openssl asn1parse命令
    Openssl ec命令
    Openssl ecparam命令
    Openssl rsa命令
  • 原文地址:https://www.cnblogs.com/drfxiaoliuzi/p/8305085.html
Copyright © 2011-2022 走看看