Resolving WinCC V6.2 SP2 Installation Failure on Windows XP SP3
The SIMATIC WinCC V6.2 SP2 setup routine is hard-coded to verify the presence of Microsoft security update MS_XPSP2_KB319740 before it allows the product to install. On a Windows XP Professional SP3 host this prerequisite check fails with messages such as "The configuration program has detected that the version of the Service Pack installed (SP3) is more recent than the update you are trying to install", even though the underlying patch is already baked into SP3. This article documents the exact registry workaround, the supported alternative (clean SP2 build), and the Siemens compatibility references that justify both procedures.
1. Affected Products and Versions
| Component | Version | Notes |
|---|---|---|
| SIMATIC WinCC | V6.2 SP2 | Releases through V6.2 SP3 share the same prerequisite logic for KB319740 |
| SIMATIC WinCC | V6.2 SP3 | Same setup check, identical registry key resolves installation |
| SIMATIC WinCC | V7.0 and later | Setup no longer blocks on KB319740; automatic updates are supported |
| Microsoft Windows XP Professional | SP2, SP3 | SP3 contains the KB319740 binary but does not register the matching Updates\Windows XP\SP3\KB319740 registry hive |
| Microsoft SQL Server | 2005 (bundled) | Must be installed before WinCC; automatic update feature must be disabled |
| SIMATIC NET | Edition 2006 | Shipped together with WinCC V6.2, V6.2 SP2 and V6.2 SP3 media |
2. Root Cause Analysis
KB319740 is a Microsoft DirectX security update originally distributed for Windows XP SP2. Its function in the WinCC V6.2 SP2 setup chain is twofold:
- Patch the DirectX 9.0c runtime that WinCC uses for the Graphics Designer and Alarm Control rendering paths.
- Register a registry hive under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP<n>\KB319740so that subsequent setup routines and inventory tools can confirm the patch level.
When Windows XP SP3 is installed, the binary payload of KB319740 is incorporated into the service pack, but the corresponding registry key is not always written because Microsoft consolidated update metadata during the SP3 rollup. The WinCC setup invokes the Microsoft Update Installer, which detects the existing (newer) file versions and aborts, leaving the registry hive empty. The setup wrapper then concludes that the prerequisite is not satisfied and halts.
Because the file-level content of KB319740 is already present on SP3, the correct engineering action is to manually create only the missing registry hive so that the WinCC prerequisite scanner can satisfy its check. No file copy is required.
3. Prerequisites
- Local administrator rights on the target Windows XP workstation.
- SIMATIC WinCC V6.2 SP2 installation media (DVD or mounted ISO).
- Confirmation that the OS is Windows XP Professional SP3 (build 2600.x at SP3 level). This procedure is not required for SP2 hosts.
- Registry Editor (
regedit.exe) – native to Windows XP. - Verified that
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updateseither does not contain theWindows XPsubkey, or contains it without theSP3\KB319740leaf.
Updates subkey is not visible at all under Microsoft, the standard fix is to re-enable the "Show updates" filter in Regedit by choosing View → Show updates, or to simply create the full path manually as described in Section 4. The key does not have to pre-exist for the workaround to succeed.4. Solution A – Registry Key Workaround (Step-by-Step)
This is the fastest path and is the procedure most engineers use in the field for both physical machines and XP Mode VMs running on Windows 7.
- Close the WinCC setup if it is still running. Cancel any pending
KB319740install prompt. - Click Start → Run, type
regeditand press Enter. Approve the UAC-equivalent prompt. - In the left-hand tree, navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft - Right-click
Microsoft, choose New → Key, and name itUpdates. - Right-click the new
Updateskey, choose New → Key, and name itWindows XP. - Right-click
Windows XP, choose New → Key, and name itSP3. - Right-click
SP3, choose New → Key, and name itKB319740. - Click into the empty
KB319740key. The right-hand pane should be empty – this is the expected state; no value entries are required for the WinCC prerequisite scan to succeed. - Close Registry Editor.
- Reboot the workstation. WinCC setup performs its prerequisite check only after a fresh boot because some MSI components rely on system hive reload.
- Re-insert the WinCC V6.2 SP2 DVD and run
Setup.exe. The KB319740 prerequisite should now be reported as satisfied and installation should proceed.
For faster repeatable deployment on multiple stations, the same result can be achieved by saving the snippet below as wincc_xpsp3_kb319740.reg and double-clicking it (or running regedit /s wincc_xpsp3_kb319740.reg):
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB319740]
The /s switch suppresses confirmation dialogs, which is convenient inside a scripted WinPE or MDT deployment task sequence.
5. Solution B – Clean Windows XP SP2 Installation
When the workstation is freshly built, the procedure preferred by Siemens support (and documented in their compatibility list, see Section 7) is to install Windows XP SP2 from original media and let the WinCC setup apply its required patches in the correct order.
- Install Windows XP Professional SP2 from the original OEM or Volume License CD.
- During the Out-of-Box Experience (OOBE), decline automatic updates and do not connect to Windows Update yet.
- Install Microsoft Office (optional) and STEP 7 (optional) before WinCC.
- Install Microsoft SQL Server 2005 – either the version bundled on the WinCC DVD or the standalone media that ships with STEP 7 / WinCC.
- Insert the WinCC V6.2 SP2 DVD. The setup automatically detects the missing KB319740 and other prerequisites and installs them from its own
Updatesfolder, which is the only Microsoft-recommended distribution path on a fully qualified SP2 host. - After WinCC setup completes and the system is fully patched, enable Windows Update manually and apply subsequent security patches as required by the plant cybersecurity policy.
Do not uninstall SP3 to revert to SP2 on an existing system. The roll-back is not a clean state and will leave mismatched binaries, particularly in win32k.sys and DirectX, which in turn cause WinCC runtime instability and is not supported by Siemens.
6. Verification
After applying either Solution A or Solution B, verify a clean install with the following checks:
- Open Start → Programs → SIMATIC → WinCC → WinCC Explorer. The Explorer should start without missing-DLL or DirectX-related errors.
- In the Explorer, open Computer → Properties and confirm the installed version is reported as WinCC V6.2 SP2 (or whichever SP was on the media).
- Open Start → Control Panel → Add or Remove Programs. The entries SIMATIC WinCC V6.2 SP2, SIMATIC NET and Microsoft SQL Server 2005 must all be listed with the expected sizes.
- Create a small test project, add an I/O field, and run Runtime → Start. The Graphics Designer and WinCC Runtime windows must render without DirectDraw errors.
- From a command prompt run
reg query "HKLM\SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB319740". The key must be present (Solution A) or replaced by the genuineSP2\KB319740key (Solution B). - Check the event log: Application log should contain no MSInstaller error 1603 and no MSI warning 194 during the WinCC setup sequence.
7. Compatibility Reference
The WinCC V6.2 compatibility list (Siemens entry 21927773) defines the exact OS levels under which V6.2 SP2 is supported. The relevant positions are:
| OS | WinCC V6.2 | WinCC V6.2 SP2 | WinCC V6.2 SP3 | WinCC V7.0+ |
|---|---|---|---|---|
| Windows XP Professional SP2 | Supported | Supported | Supported | Supported |
| Windows XP Professional SP3 | Not in compatibility list | Not in compatibility list | Not in compatibility list | Supported |
| Windows Server 2003 SP2 (32-bit) | Supported | Supported | Supported | Supported |
| Windows 7 / Server 2008 R2 (64-bit) | Not supported | Not supported | Not supported | Limited – check list |
The corresponding Siemens KB pages provide the authoritative compatibility statements:
- Siemens Entry 21927773 – Compatibility list for WinCC V6.2 SP2
- Siemens Entry 22016868 – FAQ: WinCC V6.2 SP2 and Windows XP SP3
- Siemens Entry 22531371 – FAQ: Required Windows patches for WinCC V6.2
- Siemens Entry 31694896 – Known issues installing WinCC V6.2 on SP3 hosts
- WinCC V6.2 SP3 supplementary information (ST80) – PDF, 05/2009
8. Engineering Caveats and Edge Cases
reg import step for the KB319740 key before the Setup.exe /silent call. Setting Reboot=Required on the import step prevents a race condition where the setup runs while the registry hive is still in the kernel cache.Anti-virus interference: Some endpoint protection products (notably those that hook the Windows Update API) will re-trigger the prerequisite check after the registry hack is in place and present the same error. Temporarily disable real-time scanning during the WinCC install and add %ProgramFiles%\Siemens\Automation to the AV exclusion list once the install is complete.
User Account Control and DEP: On Windows 7 hosts running XP Mode, Data Execution Prevention (DEP) must be set to the first option (Turn on DEP for essential Windows programs and services only) before launching the WinCC runtime. Strict DEP is known to terminate the WinCC DataManager process with exception 0xC0000005 when the runtime is started inside the virtual machine.
SQL Server 2005 Express naming: WinCC V6.2 SP2 creates the instance WinCC. If a different SQL 2005 instance is already present, the WinCC setup will fail at the database step rather than the KB319740 step. Use SCC 2005 – Tools – Installed SQL instances or the reg query "HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL" command to enumerate before installing.
9. Troubleshooting Matrix
| Symptom | Likely cause | Corrective action |
|---|---|---|
| Setup halts with "MS_XPSP2_KB319740 is missing" | SP3 host, KB319740 registry key absent | Apply Solution A (registry key) |
| KB319740 installer aborts with "more recent than the update you are trying to install" | MS Update Installer detecting newer binaries in SP3 | Cancel the standalone KB319740 install and create the registry hive manually (Solution A) |
Registry Editor does not show Updates key under Microsoft
|
Regedit "Show updates" filter disabled, or key never created | Enable View → Show updates or simply create the full path manually |
| Setup still fails after registry edit, no reboot performed | System hive not refreshed | Reboot the workstation, then re-run setup |
| Setup fails later with SQL 2005 instance collision | Existing SQL instance blocks WinCC named instance |
Rename or remove the conflicting instance; install the bundled SQL 2005 from the WinCC DVD |
| WinCC Runtime terminates immediately with exception 0xC0000005 | Strict DEP on Windows 7 host or XP Mode guest | Switch DEP to "essential Windows programs and services only" |
| Graphics Designer shows DirectDraw errors | DirectX 9.0c runtime corrupted by partial update | Reinstall DirectX 9.0c redistributable from the WinCC DVD \Support\DirectX9 folder |
| MSI error 1603 during WinCC install | Pending file rename or registry lock from a previous attempt | Clean boot to Safe Mode, rename %WINDIR%\Installer\$PatchCache$, reboot, retry |
10. Summary and Recommendation
For a single Windows XP SP3 workstation that must host WinCC V6.2 SP2, the registry-key workaround is the most efficient path: it is non-destructive, takes less than two minutes, and is the procedure that experienced Siemens integrators use in the field for XP Mode virtual machines. For a fresh fleet deployment or for systems being built for long-term support, the clean Windows XP SP2 installation (Solution B) is the only configuration that appears in the official Siemens compatibility list and is the configuration that Siemens support will accept without qualification.
Whenever the application lifecycle allows, migrate to WinCC V7.x or a current TIA Portal WinCC version on a 64-bit Windows host. The prerequisite logic, the SQL Server dependency, and the DirectX requirement are all removed in modern releases, eliminating the entire class of KB319740 issues described above.
What does the WinCC V6.2 SP2 error "MS_XPSP2_KB319740 is missing" actually mean?
It means the WinCC setup's prerequisite scanner could not find a registry hive at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP<n>\KB319740. On Windows XP SP3 the underlying binary is present, but the registry key is not registered; creating the key manually is sufficient to satisfy the check.
Is the registry workaround supported by Siemens?
The Windows XP SP3 OS is not listed in the Siemens compatibility list for WinCC V6.2 SP2 (entry 21927773). The clean Windows XP SP2 install is the only configuration Siemens formally supports. The registry workaround is a field-proven community procedure that resolves the installer but leaves the system in an off-cycle configuration.
Do I need to copy the KB319740 files manually after creating the registry key?
No. The binary payload is already part of Windows XP SP3, so only the registry hive needs to be created. Copying files is unnecessary and risks introducing version mismatches that can break DirectX 9.0c.
Can I uninstall SP3 to get back to a supported configuration?
No. Rolling back SP3 does not return the system to a clean SP2 state; binaries in win32k.sys and DirectX remain at the SP3 level. A clean SP2 install from original media is the only safe path. Some integrators have reported a clean install of WinCC V6.2 SP2 will not even start after an SP3 rollback.
Does the same workaround apply to WinCC V6.2 SP3 and WinCC V7?
Yes for V6.2 SP3, because the setup uses the same prerequisite logic. No for WinCC V7 and later – those versions no longer require KB319740 and do not block on Windows XP SP3. The cleanest path is to upgrade to a current WinCC version if the application permits.