Overview
S7-PLCSIM V5.4 SP4 is Siemens' final service pack for the V5.4 generation of the S7-PLCSIM simulation toolchain. Unlike its predecessors, SP4 is the only release of PLCSIM V5.4 that natively supports Microsoft Windows 7 (32-bit Professional, Ultimate, or Enterprise editions only). Earlier PLCSIM V5.4 service packs ship with MSI installers authored for Windows XP/2003 and silently abort on Windows 7. This creates a chicken-and-egg installation problem: SP4 requires an earlier V5.4 release to be registered on the system, but no earlier V5.4 release will install on Windows 7 because its setup program enforces an XP-only OS compatibility check.
This reference documents three field-proven methods to bypass the installer pre-check, complete the installation, and license the simulator on Windows 7. The procedures were validated against STEP 7 V5.5 + PLCSIM V5.4 SP4 (HF1) on Windows 7 Ultimate 32-bit and Windows 7 Professional 32-bit, and they apply equally to Windows 7 Enterprise 32-bit. Engineers migrating off Windows XP after the April 2014 end-of-support milestone rely on these techniques to keep STEP 7 V5.x projects testable on modern hardware.
Problem Description
When launching the original setup.exe from the PLCSIM V5.4 SP1, SP2, or SP3 distribution on Windows 7, the installer halts with one of the following symptoms:
- Silent exit immediately after the splash screen with a blank or 0 KB log under
%TEMP%\Siemens\Setup\PLCSIM_Setup.log. - Pop-up dialog: "This program is not supported by your operating system" while the installer enumerates Windows version
6.1.7600(Win7 RTM) or6.1.7601(Win7 SP1). - MSI installer returns exit code
0x80004005(unspecified error) after the OS version check fails inside theLaunchConditiontable. - MSI Error 1719: "The Windows Installer Service could not be accessed" when the Windows Installer 4.5 redistributable is missing.
- Setup completes, but the S7-PLCSIM entry never appears in
Start > Programs > Siemens Automation > S7-PLCSIMbecause the install transaction is rolled back.
PLCSIM V5.4 SP4 itself does install, but its setup first verifies that the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Siemens\AUTSW\PLCSim exists with a base version string such as 5.4.0.0 or 5.4.2.0. If that key is absent, the SP4 installer aborts with the dialog "A previous installation of S7-PLCSIM V5.4 could not be detected." This dual dependency is the root cause of the install failure on Windows 7.
Root Cause Analysis
The PLCSIM V5.4 base installer (SP1 through SP3) uses an MSI LaunchCondition table row that targets the Windows version properties WindowsBuild <= 3790 and VersionNT = 5.02 (XP 32-bit) or 5.01 (XP 32-bit). Windows 7 reports VersionNT = 6.01, which fails the property comparison and triggers the MSI rollback. The installer never reaches the file-copy phase, so no PLCSIM components are written to disk and no registry hive is created.
The SP4 update installer, by contrast, was rebuilt against the Windows 7 SDK and uses the AppSearch action to scan for the HKLM\SOFTWARE\Siemens\AUTSW\PLCSim key. Because the base installer never ran, the key is missing, and SP4's Condition action evaluates False and terminates. The dependency graph can be summarized as:
PLCSIM V5.4 < SP4 --> Requires Windows XP/2003 (LaunchCondition fails on Win7)
PLCSIM V5.4 SP4 --> Requires PLCSIM V5.4 base key in registry (AppSearch fails if absent)
\
+--> Deadlock on Windows 7
Three solutions break the deadlock: (1) seed the registry hive with the base PLCSIM V5.4 keys from an XP installation, (2) install the bundled STEP 7 Professional 2010 DVD which contains a combined V5.5 + PLCSIM V5.4 SP4 media, or (3) modify the base MSI's LaunchCondition with the ORCA editor to relax the OS check.
System Requirements
| Parameter | Requirement | Notes |
|---|---|---|
| Operating System | Windows 7 Professional / Ultimate / Enterprise (32-bit only) | 64-bit editions are not supported by PLCSIM V5.4 SP4; even with WOW64 the MPI/CP5611 stack does not load. |
| Service Pack Level | Windows 7 SP1 recommended | RTM works but may require the Windows Installer 4.5 hotfix KB942288. |
| STEP 7 Version | V5.5 SP1 or higher (within V5.x) | STEP 7 V5.4 itself is not certified for Windows 7; pair PLCSIM V5.4 SP4 with STEP 7 V5.5. |
| Microsoft Internet Explorer | IE 8 or IE 9 (32-bit) | Required by the Automation License Manager V5.3 SP2 active-X controls. |
| Windows Installer | 4.5 minimum, 5.0 preferred | Pre-installed on Win7 SP1; manual install of WindowsInstaller-KB942288-v4.5-x86.exe required on RTM. |
| RAM | 2 GB minimum, 4 GB recommended | PLCSIM reserves 1.5 GB for virtual CPU image at program download. |
| CPU | x86 single/dual-core, 1.6 GHz+ | Multi-core supported but only one core is used per virtual PLC instance. |
| Disk Space | 1.6 GB for STEP 7 + PLCSIM | Plus 500 MB for Windows page file. |
| Administrator Account | Required | UAC must be disabled or run setup with "Run as administrator". |
| USB License Dongle / Hardlock | Optional | PLCSIM license can be a floating license on a license server, or a local license. |
Prerequisites
- Verify the OS edition by pressing
Win+Pauseand confirming Windows 7 Professional/Ultimate/Enterprise, 32-bit.wmic os get caption, osarchitecturereturnsMicrosoft Windows 7 Professional, 32-bit. - Install STEP 7 V5.5 SP1 or higher before PLCSIM V5.4 SP4. The PLCSIM setup registers a COM in-proc server
S7WBEZS.DLLconsumed by the STEP 7 SIMATIC Manager. - Disable UAC:
Control Panel > User Accounts > Change User Account Control settings > Never notify. Reboot. - Install Internet Explorer 8 or 9 (32-bit). Even on 64-bit Windows 7 the Automation License Manager uses the 32-bit IE engine.
- Ensure Windows Installer 4.5+ is present:
msiexec /?should report version 4.5.5.0000 or higher. - Close all running STEP 7 components, SIMATIC Manager instances, and the Automation License Manager before setup.
- Have the license medium (USB dongle, floating license server URL, or license file
*.zip) ready for post-install activation.
Solution 1: Registry Export from Windows XP
This method uses any Windows XP or Windows Server 2003 host (physical or VM) to register PLCSIM V5.4 base, then exports the registry hive and imports it into Windows 7 before launching the SP4 setup. It requires a temporary XP environment but no STEP 7 DVD changes.
Step 1 - Install PLCSIM V5.4 base on XP
- On a Windows XP SP3 machine, log in as Administrator and insert the PLCSIM V5.4 SP1, SP2, or SP3 distribution CD.
- Run
setup.exefrom the CD root and complete the wizard. Accept the default installation pathC:\Program Files\Siemens\Automation\PLCSIM. - Restart the XP host to ensure all services and COM registrations are active.
- Verify the registry hive exists: launch
regeditand navigate toHKEY_LOCAL_MACHINE\SOFTWARE\Siemens\AUTSW\PLCSim. Confirm a value namedProductVersioncontains5.4.x.0and a value namedInstallPathpoints to the install directory.
Step 2 - Export the registry hive
- Open
regediton the XP host. - Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Siemens\AUTSW\PLCSim. - Right-click the
PLCSimkey and select Export. - Save the file as
PLCSim_Registry.regwith export range set to Selected branch. - If STEP 7 is not going to be installed on Win7 yet, also export the parent
Siemenskey and theSiemens\AUTSWsub-keys to preserve any related entries.
The exported .reg file will look like:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Siemens\AUTSW\PLCSim]
"ProductVersion"="5.4.0.0"
"InstallPath"="C:\\Program Files\\Siemens\\Automation\\PLCSIM"
"CustomerCode"="0000000000"
"LicenseKey"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Siemens\AUTSW\PLCSim\S7-PLCSIM]
"Version"="5.4.0.0"
Step 3 - Transfer and import on Windows 7
- Copy
PLCSim_Registry.regto the Windows 7 host via USB stick, network share, or RDP clipboard. - Log into Windows 7 as Administrator. UAC must be disabled.
- Double-click the
.regfile. Confirm the User Account Control prompt and the registry editor import dialog. - Verify the import with
regeditatHKEY_LOCAL_MACHINE\SOFTWARE\Siemens\AUTSW\PLCSim. If you are on 64-bit Windows 7, note that PLCSIM V5.4 SP4 reads the 32-bit registry view; the key still resides under the standardHKLM\SOFTWAREhive, not underWow6432Node.
Step 4 - Run the SP4 setup
- Insert the PLCSIM V5.4 SP4 update media or extract the SP4 ISO.
- Navigate to the root folder and double-click
setup.exe. - The installer now finds the registry hive and proceeds past the prerequisite check.
- Accept the license agreement, choose Install, and wait for the completion dialog (typically 2-4 minutes on a Core 2 Duo).
- Reboot Windows 7 to finalize the COM registration of
S7WBEZS.DLLandWBEZSX.OCX.
Solution 2: STEP 7 Professional 2010 Bundle
Siemens' STEP 7 Professional 2010 DVD includes a unified setup that installs STEP 7 V5.5 and PLCSIM V5.4 SP4 in a single transaction. This is the cleanest path because the bundle installer registers the base PLCSim registry key as part of STEP 7 V5.5's automation software setup, and then layers SP4 on top.
Step 1 - Acquire the media
The bundle is part number 6ES7810-5CC10-0YA7 (STEP 7 Professional 2010, English). It is also distributed as 6ES7810-5CC10-0YA8 in German. The DVD is dual-layer and contains the directories STEP7_V55 and PLCSIM_V54_SP4 as separate setups but invoked from one master menu.
Step 2 - Run the unified setup
- Insert the STEP 7 Professional 2010 DVD. Auto-run starts the
setup.exeon the root. - Select the language and accept the licensing terms.
- On the component selection screen, ensure both STEP 7 V5.5 and S7-PLCSIM V5.4 SP4 are checked. Optional components like S7-GRAPH, S7-SCL, and S7-PCT can be left checked if licensed.
- Click Install. The setup runs STEP 7 V5.5 first (about 25 minutes), then PLCSIM V5.4 SP4 (about 4 minutes).
- The PLCSIM installer will write the
HKLM\SOFTWARE\Siemens\AUTSW\PLCSimkey directly because the parent STEP 7 install creates theSiemens\AUTSWnamespace. - Reboot when prompted.
Step 3 - Activate the license
- Open Automation License Manager from
Start > Programs > Siemens Automation > License Management. - Plug in the USB license dongle (if using a hardlock), or import the floating license file via License Server > Connect.
- Click Refresh. The S7-PLCSIM V5.4 entry should appear with status Valid.
If the license does not appear, verify the date/time on the PC. PLCSIM licenses are time-stamped and a system clock set before the PC build date will reject the license as Not Yet Valid.
Solution 3: ORCA MSI Modification
ORCA is Microsoft's free MSI table editor shipped as part of the Windows SDK Components for Windows Installer Developers. With ORCA you can edit the LaunchCondition row of the PLCSIM V5.4 SP1/SP2/SP3 base installer so that it accepts Windows 7, then install the base release directly on Windows 7 before layering SP4.
Step 1 - Install ORCA
- Download the Windows SDK for Windows 7 from Microsoft and install the Windows Installer Development Tools component, which includes
orca.msi. - Alternatively, extract
orca.msifrom the SDK ISO:msiexec /a orca.msi /qb. - Launch ORCA from
C:\Program Files\ORKTools\Orca.exe.
Step 2 - Patch the base MSI
- Mount the PLCSIM V5.4 SP2 ISO or copy the
Disk1folder toC:\Temp\S7_PLCSIM_V54_SP2\PLCSim\Disk1. - In ORCA, open
setup.msifrom that folder. The MSI may prompt to create a transform file; click No and edit in place, or click Yes to save a separate MST. - Navigate to the LaunchCondition table in the left pane.
- Locate the row whose Condition column contains an expression similar to
(VersionNT=501 OR VersionNT=502) AND WindowsBuild <= 3790. This is the OS check that blocks Windows 7. - Replace the condition with:
(VersionNT=501 OR VersionNT=502 OR VersionNT=601) AND WindowsBuild <= 7601 - Save the MSI (or save the MST to
setup.mst). - If saving in place, also re-sign the package with
signtool sign /a setup.msiif your shop enforces Authenticode.
Step 3 - Install the patched MSI
- Run the patched
setup.exefrom the sameDisk1folder. - Complete the wizard; the OS check now passes and PLCSIM V5.4 SP2 registers itself.
- Launch the SP4 update setup; it detects the base install and completes the upgrade.
- Reboot.
setup.msi in place with ORCA is technically a redistribution modification. Use the MST transform approach if your license agreement with Siemens prohibits modifying the package. Solution 1 (registry export) is the cleanest workaround because it does not touch the MSI.Post-Installation Verification
- Open SIMATIC Manager from
Start > Programs > Siemens Automation > SIMATIC Manager. - Open a sample S7-300 project (or create a new one with File > New > Project).
- Click the Start S7-PLCSIM button on the toolbar, or press
Ctrl+I. - Confirm the PLCSIM window opens with the status bar reading RUN and the virtual CPU card displayed.
- Download the S7 program via PLC > Download. PLCSIM should report Download successful and start executing OB1.
- Force a bit (VAT table, address
M0.0) and verify the indicator toggles in the PLCSIM status panel. - Open Automation License Manager and confirm the PLCSIM license is shown as Valid, not Trial or Missing.
- Check the Windows Event Viewer under Applications and Services Logs > Siemens for any startup errors.
Troubleshooting Matrix
| Symptom | Probable Cause | Diagnostic | Resolution |
|---|---|---|---|
| SP4 setup dialog "A previous installation of S7-PLCSIM V5.4 could not be detected." | Registry hive absent |
regedit check HKLM\SOFTWARE\Siemens\AUTSW\PLCSim
|
Use Solution 1 to export/import .reg file, or rerun STEP 7 setup first. |
| Installer returns immediately, no progress past splash | MSI LaunchCondition failing | Inspect %TEMP%\Siemens\Setup\*.log for "LaunchCondition" entry |
Patch MSI with ORCA (Solution 3) or install base on XP first. |
| PLCSIM opens but download fails with "Connection to target PLC broken" | Softnet PG/PC interface not configured | Open Set PG/PC Interface applet; check PLCSIM(TCP/IP) entry | Select PLCSIM(TCP/IP) > TCP/IP(Auto)> Network Card as access point of STEP 7. |
| License Manager reports "Invalid license key" | System clock skew or wrong license | Compare PC date/time with time server | Resync NTP, re-import the .zip license file with License Manager. |
PLCSIM crashes at startup with S7WBEZS.DLL fault |
STEP 7 V5.4 components installed instead of V5.5 | Help > About SIMATIC Manager; must show V5.5 | Upgrade STEP 7 to V5.5 SP1, then reinstall PLCSIM V5.4 SP4. |
Setup log shows Error 1719 Windows Installer Service could not be accessed
|
Windows Installer 4.5 missing |
msiexec /? version check |
Install Windows Installer 4.5 redistributable WindowsInstaller-KB942288-v4.5-x86.exe. |
| PLCSIM installs but icons missing from Start menu | MSI rollback after partial install | Check HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall for PLCSIM GUID |
Uninstall partial copy via Programs and Features, reapply Solution 1. |
| Virtual CPU shows STOP immediately after download | OB1 scan time exceeds 1 s or programming error | Open SIMATIC Manager PLC > Module Information; check diagnostic buffer | Fix OB1 logic, recompile, redownload. |
| rasetup.log shows "Failed to register assembly S7WBEZSX" | Missing admin rights or DEP blocking load | Run setup as Administrator; verify bcdedit /set nx OptIn
|
Re-run setup with elevated rights; add S7WBEZSX.DLL to DEP exception list if needed. |
Frequently Asked Questions
Can PLCSIM V5.4 SP4 install on Windows 7 64-bit?
No. PLCSIM V5.4 SP4 is a 32-bit application and is only certified for Windows 7 Professional, Ultimate, or Enterprise in the 32-bit (x86) variant. The MPI/DP driver stack does not load under WOW64 and Softnet connectivity is unreliable. For 64-bit Windows 7, upgrade to PLCSIM V13 SP1 or higher as part of the TIA Portal family.
Which registry key does PLCSIM V5.4 SP4 look for during setup?
The SP4 installer performs an AppSearch against HKEY_LOCAL_MACHINE\SOFTWARE\Siemens\AUTSW\PLCSim. The key must contain a string value ProductVersion with a major version of 5.4. Without that value, the SP4 update aborts with the prerequisite-check dialog.
Do I need Internet Explorer installed?
Yes. The Automation License Manager V5.3 SP2 uses an Internet Explorer 8 or 9 (32-bit) ActiveX control to render license dialogs. Even if you never browse the web, IE must be present and enabled. On Windows 7 you can disable IE as the default browser, but you cannot uninstall the IE binaries.
Will the install work under Windows XP Mode hosted on Windows 7?
Not reliably. XP Mode (XPM) virtualizes the application but not the CP5611/CP5613 MPI/DP hardware or the Softnet PG/PC interface. STEP 7 and PLCSIM in XPM lose the network binding required for download/upload and S7 communication. Install PLCSIM V5.4 SP4 on the native Windows 7 host instead.
What STEP 7 version is compatible with PLCSIM V5.4 SP4?
STEP 7 V5.5 SP1 or higher within the V5.x product line. STEP 7 V5.4 is not certified for Windows 7 and produces COM registration errors with PLCSIM V5.4 SP4. If you need the latest Windows 7 compatibility patches for PLCSIM, also install HF1 (Hotfix 1) for PLCSIM V5.4 SP4, available on the Siemens Industry Online Support portal.