Problem Overview
When launching the PCS 7 V6 setup on a workstation that already has STEP 7 V5.2 SP1 installed, the Windows Installer (MSI) engine halts with the following dialog:
Error 1305: Error reading from file C:/SIEMENS/STEP7/S7BIN/S7pplomx.dll. Verify that the file exists and that you can access it.
After this dialog is acknowledged, the PCS 7 V6 installation rolls back. In most cases the existing STEP 7 V5.2 SP1 installation is also flagged as inconsistent, so subsequent re-runs of either setup fail with the same message until the underlying file-state problem is corrected.
Error 1305 is a generic Microsoft Windows Installer return code. It is raised by the MSI runtime (msiexec.exe) when a file that is referenced in the File table of an .msi/.msp package cannot be opened, read, hashed, or copied during the InstallFiles, PatchFiles, or Advertise cost phase. The error is not specific to Siemens software; it can be triggered by any installer that references a cabinet file or a dependent DLL.
Affected Products and Versions
| Component | Version | Status |
|---|---|---|
| STEP 7 | V5.2 SP1 | Baseline install present when PCS 7 V6 setup is launched |
| PCS 7 | V6.0 (all service packs) | Setup fails on InstallFiles phase |
| Windows Installer | 3.x / 4.5 | Raises error 1305 against S7pplomx.dll |
| Operating system | Windows XP SP2 / Windows Server 2003 | Reference platform for V5.2 SP1 era |
Root Cause Analysis
The S7pplomx.dll file is shipped by the STEP 7 V5.2 SP1 package. PCS 7 V6 setup detects the existing STEP 7 installation, enumerates its files, and re-validates the cabinet signature for S7pplomx.dll as part of its prerequisite check. Error 1305 is raised when one of the following is true:
- The S7pplomx.dll file is missing from
C:\SIEMENS\STEP7\S7BIN. This typically happens after an aborted STEP 7 uninstall, an antivirus quarantine, or a disk-imaging restore that excluded the S7BIN folder. - The file is present but locked by another process. Common offenders are
S7WBEXEF.exe, the SIMATIC Manager, a straydllhost.exeholding a COM surrogate, or antivirus on-access scanners. - The file is present but truncated or corrupted, e.g. by an incomplete disk write, a failing sector, or a CD/DVD read error during the original install.
- The MSI package cannot access the file because of an NTFS access-denied condition. The SYSTEM account or the user running the install does not have
Read & Executeon the file. - The dependent Microsoft Visual C++ / MFC runtime that S7pplomx.dll links against is not registered, so the loader cannot read the PE header cleanly and MSI treats the file as unreadable.
Siemens documents the same symptom and the manual file-copy remediation in the support FAQ entry Entry ID 20383534 on the Siemens Industry Online Support portal, specifically in the procedure step labeled P4. The reference is the canonical starting point for this failure mode on PCS 7 V6 / STEP 7 V5.2 SP1.
Pre-Checks Before Remediation
Capture the current state before changing anything, so a rollback is possible:
- Open Control Panel → Add or Remove Programs (Windows XP) or Programs and Features (Windows Server 2003) and record the exact STEP 7 version string. It must read
SIMATIC STEP 7 V5.2 + SP1or higher SP-level; if the SP1 suffix is missing, the patch was not installed and that is a separate problem. - Open an elevated command prompt and run:
dir /a "C:\SIEMENS\STEP7\S7BIN\S7pplomx.dll"
Note the file size, the date, and whether the file is reported as present. - Run
sfc /scannowfrom the elevated prompt. This is the Windows File Protection check and will flag any protected system DLL that has been overwritten. - Open Event Viewer → Application and clear the log. Re-run the PCS 7 V6 setup once and capture the new MSI event. The MSI event log entry under source
MsiInstallerwith Event ID 10005 typically echoes the file path that MSI failed to read. - Verify free disk space on
C:. PCS 7 V6 needs roughly 1.5 GB of free space during the install plus the same again as a rollback staging area on the system drive.
Remediation Procedure
Step 1 - Stop All SIMATIC Processes
- Press Ctrl+Shift+Esc and terminate the following executables if present:
S7WBEXEF.exe,SIMATIC_Manager.exe,S7HCOM_X.exe,S7httrace.exe,ccstart.exe,S7epa.exe. - Stop the SIMATIC diagnostic services:
net stop s7diagbx && net stop s7events && net stop s7oiehsx - Disable the antivirus real-time scan on
C:\SIEMENS\for the duration of the install. Symantec Endpoint Protection and McAfee are known to hold short-lived read handles on DLLs that MSI then cannot acquire.
Step 2 - Re-stage S7pplomx.dll Manually
This is the procedure corresponding to step P4 in Siemens FAQ 20383534. It does not require booting into safe mode, but it does require local administrator rights.
- Insert or mount the STEP 7 V5.2 SP1 installation medium.
- Browse the medium. The DLL is located in the cabinet layer of the STEP 7 setup. On a typical V5.2 SP1 CD image the path is:
D:\Setup\STEP7\Disk1\S7pplomx.dl_
Note the trailing underscore - this is the cabinet-compressed form. The expanded form isS7pplomx.dll. - Use
expand.exe(a Windows native tool, present on every supported OS) to decompress the cabinet entry into the S7BIN folder:expand "D:\Setup\STEP7\Disk1\S7pplomx.dl_" "C:\SIEMENS\STEP7\S7BIN\S7pplomx.dll" - If the cabinet is not exposed on the medium (some Service Pack slipstream images hide it), an alternative is to copy the file from a known-good peer installation of STEP 7 V5.2 SP1 with the same language pack, then run
regsvr32 /s "C:\SIEMENS\STEP7\S7BIN\S7pplomx.dll"from the elevated prompt to re-register it. - After the file is in place, set the NTFS rights to match the existing siblings in the folder:
cacls "C:\SIEMENS\STEP7\S7BIN\S7pplomx.dll" /E /G "Authenticated Users":Rcacls "C:\SIEMENS\STEP7\S7BIN\S7pplomx.dll" /E /G "Users":R - Verify:
dir /a "C:\SIEMENS\STEP7\S7BIN\S7pplomx.dll"
Confirm the size is in the expected range (typically 245 KB to 280 KB depending on language) and the date matches the STEP 7 V5.2 SP1 release date.
Step 3 - Repair the STEP 7 V5.2 SP1 Installer State
Even with the file on disk, the MSI database for STEP 7 may still be marked inconsistent. Repair it before re-launching the PCS 7 setup:
- Open Control Panel → Add or Remove Programs, select SIMATIC STEP 7 V5.2, and click Change → Repair.
- If the repair option is not present, run the STEP 7 setup with the maintenance switch:
"D:\Setup\STEP7\setup.exe" /repair - Reboot when the repair completes. A reboot is required to release any cached file handles held by the explorer shell extension that STEP 7 registers at logon.
Step 4 - Re-launch the PCS 7 V6 Setup
- Log in as a local administrator (not as a domain user with delegated rights - the PCS 7 setup creates local services and DCOM entries that domain policies can block).
- Disable UAC if it is present (it is not the default on Windows XP SP2, but some hardening images turn it on).
- Mount the PCS 7 V6 DVD. Run
setup.exeas administrator. - On the Installation Type dialog select Complete for a single-station engineering install, or Custom for an ES/OS split install.
- Watch the InstallFiles phase. If the installer re-displays Error 1305, the cabinet on the DVD is itself corrupted. Re-image the DVD from a known-good ISO.
Step 5 - Post-Install Verification
- Confirm the PCS 7 V6 entry appears in Programs and Features with the expected build number.
- Confirm the SIMATIC Manager opens and that the Options → PCS 7 menu is present (this proves the V6 overlay installed on top of V5.2 SP1).
- Run the PCS 7 Self-Diagnosis tool from Start → SIMATIC → PCS 7 → Self-Diagnosis. It should report a green status for all components including the OMX interface that S7pplomx.dll implements.
- Start WinCC Explorer and confirm a new project can be created without OMX errors in the diagnostic trace.
Error Code Reference
| MSI Error | Meaning | Common Trigger |
|---|---|---|
| 1301 | Cannot create file | Antivirus blocks DLL load |
| 1302 | Cannot write to file | Read-only file or no write ACL |
| 1303 | Cannot read from file | File truncated or sector error |
| 1304 | Error writing to file | Disk full, ACL denied |
| 1305 | Error reading from file | Missing or locked file (this article) |
| 1306 | Stopped reading from file | Bad media, CRC mismatch |
| 1307 | Stopped writing to file | Quota exceeded |
The full enumeration of MSI return codes is published by Microsoft in the Windows Installer error message reference. Use the code, not the dialog text, when searching the Siemens support database - the same dialog text can map to multiple root causes depending on the file the MSI engine is operating on.
Alternative Recovery Paths
If the manual copy described in Step 2 does not clear the failure, work the list top to bottom:
- Re-apply the STEP 7 V5.2 SP1 patch in maintenance mode. This rewrites all cabinet files and re-registers all COM objects.
-
Recreate the S7BIN folder by uninstalling STEP 7 V5.2 SP1, manually deleting the residual
C:\SIEMENStree, reinstalling STEP 7 V5.2 base, and then re-applying SP1. This is the cleanest path and is mandatory if SFC has flagged any protected DLLs as inconsistent. - Use the Windows Installer CleanUp utility (msicuu.exe) only as a last resort. It removes the MSI database entries for STEP 7 and forces a full reinstall but it does not remove the file residue, so it must be combined with the manual folder deletion above.
-
Check the registry at
HKLM\SOFTWARE\Siemens\AUTSW\STEP7. ThePathvalue must point at the sameC:\SIEMENS\STEP7folder where S7pplomx.dll was placed. A path mismatch (e.g.D:\SIEMENS\STEP7after a drive letter change) is a frequent silent cause of the same error on re-install.
Troubleshooting Matrix
| Symptom | Likely Cause | First Action |
|---|---|---|
| Error 1305 on S7pplomx.dll, file present, correct size | File locked by antivirus or process | Stop S7 processes, disable AV on-access scan, retry |
| Error 1305 on S7pplomx.dll, file missing | Unfinished uninstall or AV quarantine | Expand DLL from install media per Step 2 |
| Error 1305 on S7pplomx.dll, file present, size 0 or truncated | Bad sector or interrupted write | Copy DLL from a peer install, then sfc /scannow |
| Error 1305, then error 1305 on a different DLL | Wider STEP 7 cabinet damage | Repair STEP 7 via setup /repair |
| Error 1305 immediately after registry edit of STEP 7 path | Path mismatch | Restore HKLM\SOFTWARE\Siemens\AUTSW\STEP7\Path |
| Error 1305 on a fresh OS image | SIMATIC setup not run as administrator | Re-run setup.exe elevated, disable UAC |
Related Considerations
STEP 7 V5.2 SP1 is the last release that supports Windows 2000. If the engineering station is being prepared for a later PCS 7 release (V7, V8, V9), the correct long-term path is to upgrade the base STEP 7 to V5.5 SPx first and then install the matching PCS 7 DVD, rather than trying to install PCS 7 V6 over a V5.2 base. The Error 1305 failure mode is much rarer on V5.5-era media because the cabinet layout and the S7BIN file count are simpler.
For batch deployments across multiple engineering stations, capture the S7pplomx.dll from one good host and roll it out via a startup script. The file is bit-identical for a given language and SP level, so a script-driven copy plus a regsvr32 /s call can pre-empt the error before the PCS 7 setup ever runs.
Field-Commissioning Checklist
- Verify OS is Windows XP SP2 or Windows Server 2003, fully patched.
- Verify local administrator logon.
- Verify
C:\SIEMENS\STEP7\S7BIN\S7pplomx.dllexists, has expected size, and is not locked. - Verify HKLM\SOFTWARE\Siemens\AUTSW\STEP7\Path points at the right drive.
- Verify free disk space >= 3 GB on system drive.
- Stop all SIMATIC processes and AV real-time scan.
- Repair STEP 7 V5.2 SP1 in maintenance mode.
- Reboot.
- Run PCS 7 V6 setup as administrator.
- Run PCS 7 Self-Diagnosis and confirm green status.
What does Windows Installer Error 1305 actually mean for a PCS 7 V6 install?
Error 1305 means the MSI engine could not read a file referenced in the package's File table. In the PCS 7 V6 / STEP 7 V5.2 SP1 case the file is S7pplomx.dll under C:\SIEMENS\STEP7\S7BIN, and the usual triggers are a missing file, a locked file, a corrupted file, or an NTFS access-denied condition. See step P4 of Siemens FAQ 20383534 for the canonical Siemens answer.
Can I copy S7pplomx.dll from another PC to fix the error?
Yes, but only from another PC that has the exact same STEP 7 V5.2 SP1 build and language pack. Use the cabinet file from the install media or expand.exe to get a known-good copy, then re-register the DLL with regsvr32 /s "C:\SIEMENS\STEP7\S7BIN\S7pplomx.dll". Do not copy from STEP 7 V5.3 or later - the OMX interface exports are not compatible with PCS 7 V6.
Do I need to uninstall STEP 7 V5.2 SP1 before installing PCS 7 V6?
No. PCS 7 V6 is designed to install on top of STEP 7 V5.2 SP1 as the base. Removing STEP 7 first will actually break the PCS 7 V6 prerequisite check. The correct sequence is: confirm STEP 7 V5.2 SP1 is present and healthy, restore S7pplomx.dll if it is missing, repair STEP 7, reboot, then run the PCS 7 V6 setup as administrator.
Why does the error come back after I re-run the PCS 7 V6 setup?
Because the underlying STEP 7 V5.2 SP1 file state is still broken. PCS 7 V6 re-validates the STEP 7 base during its prerequisite check and rolls back if S7pplomx.dll cannot be read. Run setup /repair on the STEP 7 V5.2 SP1 media, reboot, and confirm the DLL is present and unlocked before retrying the PCS 7 V6 install.
Is this error specific to the German or English version of PCS 7 V6?
No. The error is raised by Windows Installer against the S7pplomx.dll file path and is independent of the language of the PCS 7 setup dialogs. The remediation is the same in any language. The Siemens support entry 20383534 is published in both German and English; switch the language at the top of the Siemens Industry Online Support page if you need the localized version.