Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

While I am trying to install vc_redist.x64.exe on Windows 8.1 getting following error:

Failed to configure per-machine MSU package.

share|improve this question
up vote 9 down vote accepted

Posting answer to my own question as I found it here and was hidden in bottom somewhere -

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

This is because the OS failed to install the required update Windows8.1-KB2999226-x64.msu.

However, you can install it by extracting that update to a folder (e.g. XXXX), and execute following cmdlet. You can find the Windows8.1-KB2999226-x64.msu at below.

C:\ProgramData\Package Cache\469A82B09E217DDCF849181A586DF1C97C0C5C85\packages\Patch\amd64\Windows8.1-KB2999226-x64.msu

copy this file to a folder you like, and

Create a folder XXXX in that and execute following commands from Admin command propmt

wusa.exe Windows8.1-KB2999226-x64.msu /extract:XXXX

DISM.exe /Online /Add-Package /PackagePath:XXXX\Windows8.1-KB2999226-x64.cab

vc_redist.x64.exe /repair last command need not be run. Just execute exe once again.

this worked for me.

share|improve this answer
1  
Thanks. That worked for me. The path to the .msu was different though. I experienced the issue while installing VS 2015 that is just released. If you do also, wait until it fails, then go to the installation log and find the actual location of the package. It was "C:\ProgramData\Package Cache\FC6260C33678BB17FB8B88536C476B4015B7C5E9\packages\Patch\x64\Windows8.1-KB2‌​999226-x64.msu" for my environment. – Pavel Jul 21 '15 at 21:49
    
I kept getting "KB2999226 - Access is denied" error when installing Visual Studio 2015. Followed the above steps except referenced the Windows 6.1 msu file [for Windows 7]. Success! – rob Jul 29 '15 at 15:54
    
I got Error 87 "The add-package option is unknown". There is no add-package in the DISM OPTIONS list when using the command DISM.EXE /?. My system is Windows 8.1 pro and I got the KB2999226 fail error when installing the VS 2015 Professional. – Shenwei Jul 31 '15 at 3:53
    
thanks this helped me – Anders K. Sep 4 '15 at 11:02
1  
If you get that error 87 "the add-package option is unkown," the reason can be that the "Windows Modules Installer" service is not running. – Cito Sep 9 '15 at 21:27

The OS failed to install the required update Windows8.1-KB2999226-x64.msu. However I tried to find the particular update from -

C:\ProgramData\Package Cache\469A82B09E217DDCF849181A586DF1C97C0C5C85\packages\Patch\amd64\Windows8.1-KB2999226-x64.msu.

I couldn't find it there so I installed the kb2999226 update from here (Windows 10 Universal C runtime)

Then I installed the update according to my OS and after that It was working fine.

share|improve this answer

I faced a similar problem but in my case I was trying to install Visual C++ Redistributable for Visual Studio 2015 Update 1 on Windows Server 2012 R2. However the root cause should be the same.

In short, you need to install the prerequisites of KB2999226.

In more details, the installation log I got stated that the installation for Windows Update KB2999226 failed. According to the Microsoft website here:

Prerequisites To install this update, you must have April 2014 update rollup for Windows RT 8.1, Windows 8.1, and Windows Server 2012 R2 (2919355) installed in Windows 8.1 or Windows Server 2012 R2. Or, install Service Pack 1 for Windows 7 or Windows Server 2008 R2. Or, install Service Pack 2 for Windows Vista and for Windows Server 2008.

After I have installed April 2014 on my Windows Server 2012 R2, I am able to install the Visual C++ Redistributable correctly.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.