Ошибка S1023 при установке SDK DirectX
В этой статье помогают устранить ошибку S1023, которая возникает при установке выпуска SDK DirectX в июне 2010 г.
Оригинальная версия продукта: Windows 8 Корпоративная, Windows 7 Корпоративная, Windows 7 Домашняя базовая, Windows 7 Профессиональная
Исходный номер КБ: 2728613
Симптомы
Если на компьютере установлен существующий microsoft Visual C++ 2010, на компьютере может быть установлена ошибка S1023 при установке SDK DirectX в июне 2010 г.
Причина
Проблема возникает из-за того, что на компьютере присутствует более новая версия Visual C++ 2010. SDK DirectX 2010 июня 2010 г. устанавливает версию 10.0.30319 visual C++ Для перераспределения.
Решение
Чтобы устранить эту проблему, необходимо удалить все версии Visual C++ 2010, перед установкой SDK DirectX в июне 2010 г. Может быть установлено одно или несколько следующих продуктов:
- Microsoft Visual C++ 2010 x86 Redistributable
- Microsoft Visual C++ 2010 x64 Redistributable
Чтобы удалить продукты, можно использовать add or Remove Programs in Control Panel. Или можно выполнить следующие команды из командной подсказки администратора:
После стирки продуктов Microsoft Visual C++ 2010, которые можно перераспределить, можно установить набор разработки программного обеспечения DirectX.
После установки SDK DirectX в июне 2010 г. вы можете переустановить наиболее текущую версию Microsoft Visual C++ 2010 Пакет обновления 1Перераспределяемого пакета MFC Security Update .
Дополнительные сведения
Та же проблема может предотвратить установку SDK Windows 7.
Error when installing windows SDK 7.1
I’ve run into an error when installing the Windows SDK that I’ve seen posted around the Internet, but none of the solutions are working for me. Here is the log I’m getting
When I try to run vcredist_x64 separately, I get this error:
Now, as per every solution I’ve read about this online, I’d uninstall the redistributable and continue with the installation. The problem is that I don’t have any VC++ 2010 redistributables installed (only 2005 and 2008). The only thing besides the main program is something called Microsoft Visual Studio 2010 Express Prerequisites x64 — ENU . Uninstalling this has no effect on the errors I receive. There’s something on my computer that’s telling the SDK I have this redist installed, but I’m not sure what. Can anyone shed some light on this for me?
Edit: This problem persists even when I completely uninstall Visual C++ 2010. What else can I do to remove all traces of this software from my machine?
Edit 2: After searching the registry a bit, I’ve found that NI installs its own visual c++ 2010 redistributable with one of its programs, but it isn’t included in the «Add or Remove Programs» list. I’ve uninstalled this and hopefully the sdk will install properly.
Edit 3: No luck, still getting the same error. I can find other 2010 redistributables in the registry, but trying to execute the uninstall string manually just tells me that I can only run it on installed packages. This would be much simpler if I knew how the vcredist finds currently installed redistributions.
Cannot install Windows SDK 7.1 on Windows 10
I’m a software developer with a Windows 10 PC. I have to support some older software written in Visual Studio 2010 using Windows SDK 7.1
In trying to set up the development environment, I have successfully installed VS2010, and come to install Windows SDK 7.1, however the installer gives the error:
Some components cannot be installed
Some Windows SDK components require the RTM .NET Framework 4. Setup detected a pre-release version of the .NET Framework 4. If you continue with Setup, these components will not be installed. If you want to install these components, click Cancel, then install the .NET Framework 4 from http://go.microsoft.com/fwlink/?LinkID=187668 and then rerun Setup.
However, Windows 10 comes with .NET 4.5, so as far as I can tell there is yet another version check problem.
This would not worry me so much, but in attempting to install the Visual Studio 2010 compiler update, this fails, saying
cannot install because windows sdk 7.1 is not found
Attempting to install .NET 4 fails because it detects a later version of .NET.
8 Answers 8
@dougg3’s answer scripted:
First install SubInAcl,can be downloaded from Microsoft here. You may need to add it to your PATH, ex: set PATH=%PATH%;C:\Program Files (x86)\Windows Resource Kits\Tools
Then run these commands in an elevated cmd prompt:
I stumbled across another workaround, which I’ve also posted on a msdn thread:
Uninstall any Visual C++ 2010 Redistributables from the control panel first.
Download the corresponding offline ISO image from the Windows SDK archive. This lists which ISO is which.
After mounting the image, open F:\Setup\SDKSetup.exe directly.
I just ran into this same problem. No idea how safe this actually is to do, but I was able to work around it by temporarily fooling the installer into thinking I had a different version of .NET 4.0 installed. I opened Process Monitor and used it to monitor everything that setup.exe was doing in order to find out how it was determining that I had a «pre-release» version of .NET 4.0.
It turns out that it looks at these two strings in the registry:
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP\v4\Client\Version
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP\v4\Full\Version
On my Windows 10 machine, these currently are both 4.6.00079 . The installer doesn’t seem to like this value. I temporarily replaced both of them with the string 4.0.30319 in regedit to match the value from InstallPath, and that seemed to do the trick. And of course, when I was finished, I put them back the way they originally were.
However, I did not have permission to change those values, so it was a bit tricky. I right-clicked on the Client key, chose Permissions, and clicked Advanced. Then I changed the owner to my user account instead of TrustedInstaller. This allowed me to add permissions for Full Control for myself so I could modify the Version value. I repeated the same process on the Full key. After the installer completed successfully, I put the original version values back in ( 4.6.00079 ), deleted the permissions I added for myself, and restored the owner to TrustedInstaller (to do that, type NT SERVICE\TrustedInstaller as the username).
There might be a safer/easier way of intercepting the registry reads than actually modifying the registry, but this was simple enough for me!
Windows SDK 7.1 Setup failure
I am trying to install Windows SDK for Windows 7 with .NET Framework 4 but when I open the setup I receive an error:
Some Windows SDK components require the RTM .NET Framework 4. Setup detected a pre-release version of .NET Framework 4. If you continue with Setup, these components will not be installed. If you want to install these components, click Cancel, then install the .NET Framework 4 from https://go.microsoft.com/fwlink/?LinkID=187668 and then rerun Setup.
Click OK to continue.
When I went to install the .NET Framework 4 it appears a message saying that there is already the .NET Framework 4 on my PC:
The Microsoft .NET Framework 4 is already part of the operating system. No need to install the .NET Framework 4 redistributable. More information.
An equal or higher version of the .NET Framework 4 has already been installed on the computer.
I don’t know what to do anymore. I am using Windows 10 Enterprise (x64).
5 Answers 5
With Windows 10 x64, the setup is blocked by:
Change both values temporarily to 4.0.30319 and the setup will let you continue. Make sure you edit the registry with elevated privileges, otherwise you will not be allowed to change the values.
I had to uninstall the following:
- «Microsoft Visual C++ 2010 x64 Redistributable»
- «Microsoft Visual C++ 2010 x86 Redistributable»
Before installing the Windows 7.1 SDK, and the install package reinstalls those two during installation.
In order to deal with this problem, I uninstalled my .NET framework version 4.6 and installed 4. Then I installed the SDK, and the problem was gone.
I was also facing exactly the same problem mentioned above. After so many attempts the suggestion mentioned in the below link helped
The steps executed by me are as follows
- Uninstall Visual C++ and .NET 4.x version
- Remove register entries corresponding to these installations. I was having Windows 7, but deleted entries as suggested here
- Restarted Windows
- Tried installing SDK using web installer
- This did not work. Later, invoked the SDK installation when the installation screen is still on [with the Installation Error msg] executed debug related msi [you can also install any extracted msi
- Once after the installation completes, close the Installation error UI [step 5] and reinvoke the installation of SDK.
- This time, UI screen option would change. Options that you can see is Change, Repair etc. Select Change and complete other component installation.
Windows 7 SDK installation failure
I seem to be completely unable to install the Windows 7 SDK onto my machine, and the only solution I’ve found on the web is to make a swathe of registry changes. I’ve done this — still no success.
This is the reported error:
A problem occurred while installing selected Windows SDK components.
Installation of the «Microsoft Windows SDK for Windows 7» product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information.
Please attempt to resolve the problem and then start Windows SDK setup again. If you continue to have problems with this issue, please visit the SDK team support page at http://go.microsoft.com/fwlink/?LinkId=130245.
Click the View Log button to review the installation log.
To exit, click Finish.
There is no Samples directory to refer too, and the SDK support team don’t appear to live there any longer.
How do I fix this problem?
12 Answers 12
Microsoft now has a knowledge base article called Windows SDK Fails to Install with Return Code 5100 that describes this problem and its fix:
This issue occurs when you install the Windows 7 SDK on a computer that has a newer version of the Visual C++ 2010 Redistributable installed. The Windows 7 SDK installs version 10.0.30319 of the Visual C++ 2010 Redistributable.
The error message is located in the log file, which can be opened through the View Log button in the installer. Otherwise, it can be found here: %userprofile%\AppData\Local\Temp\ or %temp% . The log file is most likely called SDKSetup_7.xxxxx.log .
Solution: Uninstall any existing Visual C++ 2010 redistributable.
I just had this problem, and I looked at the solution at Ctrl+F5, Fix Problem Installing Windows SDK for Windows 7, but it didn’t work.
I googled around and found the page Installing Visual C++ 2010 and Windows SDK for Windows 7: offline installer and installation troubleshooting and the advice there worked. Basically you could have one of several problems, and you have to look in the log file to see what’s going on. In my log file I had:
6:17:07 PM Saturday, October 01, 2011: C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe installation failed with return code 5100
so as that above web page suggested, I uninstalled both copies of the Visual C++ 2010 Redistributable Package that I had (both x86 and x64), and then when I ran the Windows 7 SDK installer again, it worked.
Although you might have a different problem than me. Try the solutions at the Ctrl+F5 and patheticcockroach.com websites that I linked.
I hoped this helped!
All of these (and other) solutions have failed completely for me so I figured out another.
You need the offline installation package (mine was x64), and you need to manually install only the samples. Opening the ISO-file with, for example, 7-Zip from location Setup\WinSDKSamples_amd64 and running WinSDKSamples_amd64.msi did this for me.
Then you just use the normal setup file to REPAIR the installation and choose whatever components you wish.
You should really check the log. It seems that quite a few components can cause the Windows SDK installer to fail to install with this useless error message. For instance it could be the Visual C++ Redistributable Package as mentioned there.
I have had this same problem with the x64 version installation. It relates (in my case at least) to the dexplore.exe installation. I uninstalled dexplore, reinstalled it, did a heap of registry changes, etc. as per various blogs and SDKs all to no avail. What finally fixed it for me was editing this registry key:
I changed the value to 0. Once the SDK had installed (quite happily this time) I set the value back to 1.
What alerted me to the possible error was the following in the SDK setup log:
And this in the dexplore installation logfile:
I hope this is of assistance in your situation.
One of the things to also keep in mind is that when you have Visual Studio 2010 SP1 installed some C++ compilers and libraries may have been removed. There’s been an update made available by Microsoft to make sure those are brought back to your system.
Install this update to restore the Visual C++ compilers and libraries that may have been removed when Visual Studio 2010 Service Pack 1 (SP1) was installed. The compilers and libraries are part of the Microsoft Windows Software Development Kit for Windows 7 and the .NET Framework 4 (later referred to as the Windows SDK 7.1).
Also, when you read the VS2010 SP1 README you’ll also notice that some notes have been made in regards to the Windows 7 SDK (See section 2.2.1) installation. It may be that one of these conditions may apply to you and therefore may need to uncheck the C++ compiler-checkbox as the SDK installer will attempt to install an older version of compilers ÓR you may need to uninstall VS2010 SP1 and re-run the SDK 7.1 installation, repair or modification.
Condition 1: If the Visual C++ Compilers checkbox is selected when the Windows SDK 7.1 is installed, repaired, or modified after Visual Studio 2010 SP1 has been installed, the error may be encountered and some selected components may not be installed.
Workaround: Clear the Visual C++ Compilers checkbox before you run the Windows SDK 7.1 installation, repair, or modification.
Condition 2: If the Visual C++ Compilers checkbox is selected when the Windows SDK 7.1 is installed, repaired, or modified after Visual Studio 2010 has been installed but Visual Studio 2010 SP1 has not been uninstalled, the error may be encountered.
Workaround: Uninstall Visual Studio 2010 SP1 and then rerun the Windows SDK 7.1 installation, repair, or modification.
However, even then I found that I still needed to uninstall any existing Visual C++ 2010 redistributables, as has been suggested by mgrandi.