Fixing S7 Distributed Safety V5.4 SP5 Installation on Windows 10

David Krause14 min read
Safety SystemsSiemensTroubleshooting
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Problem Overview

The S7 Distributed Safety V5.4 SP5 Update 2 installer aborts silently on Windows 10 Enterprise (64-bit) systems that already host a STEP 7 Professional V17 / 2021 Combo and WinCC Comfort V17 stack. The Setup wizard halts without surfacing a Windows error code, an MSI return value, or a Setup log line item in %TEMP%. The InstallShield engine simply stops after the welcome screen and never advances to the feature selection dialog.

Observed behavior: The wizard runs to roughly the "Preparing to install" phase, then closes. Setup.exe returns exit code 0 in some captures but the package is not registered. No entry appears under Control Panel → Programs and Features, and the S7 Distributed Safety add-in is not selectable from inside the SIMATIC Manager.

This failure mode is specific to mixed-version environments where the classic V5.x line coexists with the TIA Portal V17 line. Both packages rely on the same legacy InstallShield driver cache at C:\Program Files (x86)\Common Files\InstallShield\Driver\<version>\. When the V17 setup rotates the driver cache entries but leaves stale references, the V5.4 SP5 Setup cannot resolve its own package dependency tree and exits silently.

Affected Software Stack

Component Version Role
Windows 10 Enterprise 1809 / 21H2 / 22H2 (64-bit) Host OS
STEP 7 Professional V17 / 2021 Combo Already installed (TIA Portal)
WinCC Comfort / Advanced V17 Already installed (HMI engineering)
SIMATIC Manager (STEP 7 V5.x) V5.7 (with V5.6 option) Required base for Distributed Safety
S7 Distributed Safety V5.4 SP5 Update 2 F-block engineering package being installed
S7 F Configuration Pack V5.6 or V5.7 Optional, but typically licensed with the project
The STEP 7 Professional V17 / 2021 Combo license authorizes both the TIA Portal V17 environment and the legacy V5.6 / V5.7 environment. They are separate installation packages and must be installed side-by-side. A common root cause for the silent V5.4 SP5 abort is that only the V17 TIA Portal was deployed, and the SIMATIC Manager V5.x base is missing. See the official Siemens knowledge base entry "Why is the installation of S7 Distributed Safety V5.4 aborted in Windows 7 / Windows 10 Enterprise / Professional 64-bit?" for the canonical fix order.

Prerequisites Before Re-Running Setup

Before retrying the V5.4 SP5 Update 2 install, confirm each prerequisite. Skipping any one will reproduce the silent abort.

  1. Install SIMATIC Manager V5.7 (or V5.6). Open Control Panel → Programs and Features and verify entries for SIMATIC Manager V5.7 (or STEP 7 V5.6). If absent, mount the appropriate DVD image and install before attempting the safety package.
  2. Stop all Siemens background services. Open services.msc and stop S7DOS Help Server, SNMP Siemens Automation, SIMATIC Event Service, and any TraceService process tied to the TIA Portal. Leaving these services running locks files in %ProgramFiles(x86)%\Siemens\Automation.
  3. Disable antivirus real-time scanning on %ProgramFiles(x86)%\Siemens and the InstallShield cache directory for the duration of the install.
  4. Verify disk space. Distributed Safety V5.4 SP5 Update 2 consumes approximately 380 MB on the system drive and 220 MB on the installation drive. Confirm a minimum of 2 GB free on the boot partition to leave room for the InstallShield scratch volume.
  5. Confirm local administrator rights. The installer creates DCOM entries under HKLM\SOFTWARE\Classes\AppID and registers the S7DSHF service. A standard user account cannot complete these operations even when elevation succeeds on the UI side.

Root Cause: InstallShield Driver Cache Mismatch

InstallShield 2011/2012/2018 share a numbered driver folder scheme under C:\Program Files (x86)\Common Files\InstallShield\Driver\<n>\. Each new install shifts the working set; a torn upgrade leaves an empty or partially populated 11 folder that V5.4 SP5 Update 2 attempts to use.

The InstallShield bootstrapper of S7 Distributed Safety V5.4 SP5 Update 2 calls into Driver\11\Intel 32 for its prerequisite scanner. If the binary setup.exe resolves but iGdi32.dll or iUser32.dll is missing or zero-byte, the bootstrap calls EndDialog(IDABORT) without writing a log line, producing the observed silent failure.

Two diagnostic checks confirm the corruption:

  1. Open C:\Program Files (x86)\Common Files\InstallShield\Driver\11\Intel 32\. If the directory is empty, missing, or contains only setup.dll, the cache is torn.
  2. Launch the V5.4 SP5 Update 2 setup with logging enabled: Setup.exe /debuglog"%USERPROFILE%\Desktop\S7DS_setup.log". The resulting log will terminate with "ISDEV: error 0" immediately after the prerequisite resolution phase if the driver cache is the failure point.

Pre-Installation Cleanup Procedure

Perform this sequence in order. Do not reboot between steps unless instructed.

Step 1 — Remove the broken driver cache

  1. Close all Siemens applications and the TIA Portal.
  2. Open Command Prompt (Admin) and stop the Windows Installer service to prevent concurrent MSI operations:
    net stop msiserver /y
  3. Rename, do not delete, the corrupt cache so it can be restored if recovery fails:
    ren "C:\Program Files (x86)\Common Files\InstallShield\Driver\11" "11_corrupt_%date:~10,4%%date:~4,2%%date:~7,2%"
  4. Create a fresh empty directory:
    mkdir "C:\Program Files (x86)\Common Files\InstallShield\Driver\11\Intel 32"

Step 2 — Clear residual MSI registration entries

  1. Open regedit as administrator and navigate to:
    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products
  2. Search for any product GUID that contains "S7 Distributed Safety" in its DisplayName value. Right-click and Export the key first as a safety backup, then delete only the matching product GUIDs (do not delete sibling keys).
  3. Repeat under HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products for 32-bit registry redirection.

Step 3 — Reset DCOM and security descriptors

  1. Open dcomcnfg.
  2. Navigate to Component Services → Computers → My Computer → DCOM Config.
  3. Sort by Application Name and remove any entry starting with SIMATIC or S7F that points to a missing file under %ProgramFiles(x86)%\Siemens\Automation\S7DS\. Right-click → Properties → confirm the Location path exists. If it does not, the DCOM stub must be removed; otherwise the V5.4 SP5 installer's DCOM registration step will fail with 0x80070005 (access denied) and roll back silently.

Step 4 — Validate the source media

  1. Recopy the V5.4 SP5 Update 2 archive to a local drive. Avoid running from a network share or USB drive with power-saving suspension; both produce truncated read errors that mimic the InstallShield bug.
  2. Compare the SHA-256 of the Setup.exe with the value published on the Siemens Industry Online Support portal under the article referenced above. A mismatch indicates a damaged download.

Required Installation Sequence

The packages must be installed in this strict order. Deviating produces cascading dependency faults that surface as silent aborts at later stages.

Step Package Notes
1 STEP 7 V5.6 (or V5.7) base Includes SIMATIC Manager and S7-PLCSIM legacy.
2 S7 F Configuration Pack V5.6 / V5.7 Provides the F-library catalog and signature keys.
3 S7 Distributed Safety V5.4 SP5 Initial service pack — install full kit before any update.
4 S7 Distributed Safety V5.4 SP5 Update 2 Patch layered on top of SP5.
5 STEP 7 Professional V17 / 2021 Combo TIA Portal line; can be installed before or after step 4.
6 WinCC Comfort V17 HMI engineering; independent of the F-block chain.
The TIA Portal line (V17) and the classic line (V5.6 / V5.7) coexist on the same machine but use independent registries and add-in directories. Install order between them is flexible except that the classic line must be present before the V5.4 SP5 Update 2 patch runs.

Running the Installer as Administrator

Even with the cache repaired, UAC virtualization on Windows 10 Enterprise can mask the failure. Always launch the Setup with full administrator privileges:

  1. Right-click Setup.exe in the V5.4 SP5 Update 2 directory.
  2. Select Run as administrator.
  3. When prompted, enter local administrator credentials — do not accept the elevation prompt under a non-admin domain account.
  4. On the User Settings dialog, select Install for all users of this computer. The Current user only option creates per-user HKCU entries that conflict with the V17 add-in loader.

If Group Policy blocks the elevation prompt, run from an elevated command prompt:

cd /d "D:\Siemens\S7_Distributed_Safety_V5_4_SP5_Upd2"
Setup.exe /debuglog"%USERPROFILE%\Desktop\S7DS_setup.log"

Step-by-Step Clean Installation

  1. Disable UAC temporarily for the install only: reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f. Re-enable with /d 5 after verification.
  2. Stop the Windows Installer service: net stop msiserver.
  3. Insert or mount the SIMATIC Manager DVD or ISO for V5.7. Run Setup.exe as administrator. Accept the license agreement and choose Install.
  4. Reboot when prompted. The V5.7 setup requires a restart to finalize DCOM and WMI registrations.
  5. Mount and install the S7 F Configuration Pack V5.6 / V5.7 next.
  6. Mount and install S7 Distributed Safety V5.4 SP5 (full package, not the Update 2 delta). This step registers the F-shared library at %ProgramFiles(x86)%\Siemens\Automation\S7DS\Lib\.
  7. Mount and install S7 Distributed Safety V5.4 SP5 Update 2 over the SP5 base.
  8. Reboot.
  9. Re-enable UAC: reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 5 /f.
  10. Re-enable antivirus on the Siemens directory tree.

Verifying the Installation

After the final reboot, confirm the package is fully registered before opening any F-project:

  1. Open Control Panel → Programs and Features. The following entries must be present:
    • SIMATIC S7 Distributed Safety V5.4 + SP5
    • SIMATIC S7 Distributed Safety V5.4 SP5 Update 2
    • SIMATIC S7 F Configuration Pack V5.7 (or V5.6)
  2. Launch SIMATIC Manager from the desktop shortcut. Open Options → Install F-Blocks. The dialog must list the F-shared blocks F_SHUTDN, F_STARTUP, F_PSF, and the F-runtime library.
  3. Launch STEP 7 V17 from the TIA Portal. Open Options → Safety. The wizard must recognize the V5.4 SP5 catalog and offer migration to STEP 7 Safety Advanced V17.
  4. Open regedit and confirm the registry key HKLM\SOFTWARE\Siemens\Automation\S7DS\5.4\ServicePacks contains the string "5.4.5.2".
  5. Check %ProgramFiles(x86)%\Siemens\Automation\S7DS\Bin\S7DSCfg.dll for a file version of 5.4.5.2 (right-click → Properties → Details).

If any check fails, re-run the patch with /REINSTALLMODE=omus:

msiexec /i "S7 Distributed Safety V5.4 SP5.msi" /REINSTALLMODE=omus REINSTALL=ALL /qb

Project Migration to STEP 7 Safety Advanced

If the legacy project can be opened under the now-functional V5.4 SP5 environment but the engineering roadmap calls for TIA Portal, the F-blocks must be cleaned before migration. The official TIA Portal documentation at Migrating projects from S7 Distributed Safety V5.4 SP5 to STEP 7 Safety Advanced lists the prerequisite:

Delete all F-blocks not required by the safety program in your S7 Distributed Safety V5.4 SP5 project prior to migration. Procedure as in STEP 7 Professional.

The procedure is:

  1. Open the F-project in the SIMATIC Manager with V5.4 SP5 Update 2.
  2. Right-click the F-Program container in the project tree and select F-Block Container → Check Block Consistency.
  3. Identify any F-block whose safety signature is not referenced in the safety program. Cross-reference with the Safety Program Structure document.
  4. Delete unreferenced F-blocks, recompile the safety program, and re-run the consistency check.
  5. Export the project to .s7p format with Archive → User-defined Archive.
  6. In TIA Portal V17, open the project with Migrate Project. The TIA Portal Safety Advanced wizard consumes the cleaned archive and produces a STEP 7 Safety Advanced project.
Failure to delete unreferenced F-blocks causes the TIA Portal migration to terminate with "Safety program inconsistency: orphaned F-block references detected". The migration cannot be retried automatically; the source project must be re-archived after cleanup.

Choosing Between S7 Distributed Safety and STEP 7 Safety Advanced V17

The Siemens portfolio offers two parallel safety engineering toolchains. The correct one depends on the target runtime and project history:

Criterion S7 Distributed Safety V5.4 SP5 STEP 7 Safety Advanced V17
Editor SIMATIC Manager (classic) TIA Portal
CPU targets S7-300F / S7-400F / ET 200S / ET 200pro S7-300F / S7-400F / S7-1500F / ET 200SP F
Project source Legacy V5.4 / V5.5 / V5.6 projects New projects or migrated V5.4 SP5 archives
F-block catalog V1-V13 libraries V14-V17 libraries with F-CPU V2.x features
License model Stand-alone Floating or Single Bundled in TIA Portal Combo or standalone
Migration path None (terminal) From V5.4 SP5 (one-way)

If the project carries F-blocks compiled with libraries before V13, the only viable editor is S7 Distributed Safety V5.4 SP5. If the F-CPU is an S7-1500F, the only supported editor is STEP 7 Safety Advanced V17.

Troubleshooting Matrix

Symptom Likely Cause Fix
Setup exits silently before feature selection InstallShield driver cache torn Remove Driver\11, follow Step 1 of pre-install cleanup
Setup reports "Prerequisite check failed: STEP 7 V5.x not found" SIMATIC Manager missing Install V5.7 (or V5.6) before retrying
Setup returns MSI error 1603 during DCOM registration DCOM stub references a missing binary Clean DCOM entries per cleanup Step 3
Setup appears to succeed but feature is absent in Programs and Features Silent rollback due to elevation failure Disable UAC, run from elevated command prompt
F-block library is empty in SIMATIC Manager S7 F Configuration Pack not installed Install F Configuration Pack matching the V5.x base
Installation hangs at 99% on the registration step Antivirus or backup agent locking Siemens folders Add exclusion for %ProgramFiles(x86)%\Siemens
Setup aborts after language pack installation Inconsistent language pack order Uninstall prior language packs, install only en-US and de-DE
Permission error 0x80070005 on HKLM write Group Policy restricts HKLM writes Contact IT for temporary policy lift or run under local admin
TIA Portal does not see V5.4 SP5 catalog V17 TIA Portal installed without F Configuration Pack alignment Install matching S7 F Configuration Pack for TIA Portal V17
Migration to Safety Advanced stops at safety signature verification Orphaned F-blocks in source project Delete unreferenced F-blocks, re-archive the project

Edge Cases and Field Notes

  • Windows 10 22H2 and later: Microsoft tightened DCOM launch security in 22H2. If the V5.4 SP5 installer fails after October 2022 with a DCOM error, raise the Machine Launch Restrictions in dcomcnfg under Component Services → Computers → My Computer → Properties → Default Properties → Enable Distributed COM on this computer.
  • Volume Licensing (KVL): Siemens Open License installations use a different MSI bootstrapper. The Setup.exe for KVL packages skips the InstallShield prerequisite scan, but it requires the SSF service to be running. Start it with net start "Siemens Automation License Manager".
  • Container-based deployment: If the target machine is provisioned from a gold image that already contains a broken InstallShield cache, the silent abort reproduces on every container. Bake the cleanup Step 1 into the image preparation script.
  • Multi-language packs: Installing every available language pack inflates the package to over 1.2 GB and triggers an MSI rollback if the disk free threshold falls below 5%. Limit language packs to the ones actually deployed.
  • Coexistence with TIA Portal V18 / V19: TIA Portal V18 and V19 also share the InstallShield cache. Do not install V5.4 SP5 Update 2 after V18 or V19 without first refreshing the InstallShield cache.

Operational Checklist

Item Pass Criterion
SIMATIC Manager launches Open without "S7DLL.DLL not found"
F-Block catalog populated Options → Install F-Blocks shows ≥ 14 libraries
S7DS service registered sc query S7DS returns the service state
Registry version stamp HKLM\...\S7DS\5.4\ServicePacks = 5.4.5.2
DLL file version S7DSCfg.dll = 5.4.5.2
Safety program compile test Compile a sample F-FB and download to PLCSIM
TIA Portal sees catalog Options → Safety lists V5.4 SP5 libraries
Always back up the C:\Program Files (x86)\Common Files\InstallShield\Driver\ tree before any manipulation. A corrupted InstallShield cache also breaks future installations of unrelated vendor packages that depend on the same shared cache.

FAQ

Why does the V5.4 SP5 installer abort without an error code on Windows 10 Enterprise?

The classic InstallShield 2011 / 2012 bootstrapper used by the V5.4 SP5 Update 2 package depends on a numbered driver cache under C:\Program Files (x86)\Common Files\InstallShield\Driver\11\. When a TIA Portal V17 setup rotates the cache and leaves an empty or partial entry, the prerequisite scanner cannot resolve its binary dependencies and exits silently. Removing the corrupt Driver\11 folder and recreating the directory structure restores the bootstrapper.

Do I need STEP 7 V5.6 or V5.7 installed before S7 Distributed Safety V5.4 SP5 Update 2?

Yes. The V5.4 SP5 package requires the classic SIMATIC Manager base (V5.6 or V5.7) to be installed first, regardless of whether the TIA Portal V17 line is present. The V17 Combo license authorizes both V17 and V5.6 / V5.7, but they are independent installers. Without the classic base, the prerequisite scanner reports "STEP 7 V5.x not found" and aborts.

Can I skip S7 Distributed Safety V5.4 SP5 and install only the Update 2 patch?

No. Update 2 is a delta patch layered on the SP5 base; it expects the SP5 binaries, registry entries, and F-block catalog already present. Installing only Update 2 results in a partial registration and the package will not appear in Programs and Features. Install the full SP5 package first, then apply Update 2.

Should I use S7 Distributed Safety or STEP 7 Safety Advanced V17 for a new F-CPU project?

For S7-1500F or ET 200SP F targets, you must use STEP 7 Safety Advanced V17 — the legacy S7 Distributed Safety does not support those CPU families. For S7-300F, S7-400F, ET 200S, or ET 200pro targets with legacy F-libraries (V1-V13), S7 Distributed Safety V5.4 SP5 remains the correct tool. Migration from V5.4 SP5 to Safety Advanced is one-way and requires orphaned F-block cleanup first.

What registry key confirms the V5.4 SP5 Update 2 installation?

Verify HKLM\SOFTWARE\Siemens\Automation\S7DS\5.4\ServicePacks contains the value 5.4.5.2, and that the file version of %ProgramFiles(x86)%\Siemens\Automation\S7DS\Bin\S7DSCfg.dll reports 5.4.5.2 in its Details tab. Both must agree; a mismatch indicates the SP5 base installed but Update 2 did not.

Does disabling UAC permanently reduce security?

UAC should be re-enabled immediately after the install completes. The recommended sequence is: disable via ConsentPromptBehaviorAdmin=0, install, reboot, run verification checks, then re-enable with ConsentPromptBehaviorAdmin=5. Leaving UAC disabled exposes the system to silent-elevation attacks and breaks many Siemens self-elevation paths.

Back to blog