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.
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 |
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.
- 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.
-
Stop all Siemens background services. Open
services.mscand 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. -
Disable antivirus real-time scanning on
%ProgramFiles(x86)%\Siemensand the InstallShield cache directory for the duration of the install. - 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.
-
Confirm local administrator rights. The installer creates DCOM entries under
HKLM\SOFTWARE\Classes\AppIDand 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:
- Open
C:\Program Files (x86)\Common Files\InstallShield\Driver\11\Intel 32\. If the directory is empty, missing, or contains onlysetup.dll, the cache is torn. - 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
- Close all Siemens applications and the TIA Portal.
- Open Command Prompt (Admin) and stop the Windows Installer service to prevent concurrent MSI operations:
net stop msiserver /y - 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%" - Create a fresh empty directory:
mkdir "C:\Program Files (x86)\Common Files\InstallShield\Driver\11\Intel 32"
Step 2 — Clear residual MSI registration entries
- Open
regeditas administrator and navigate to:HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products - Search for any product GUID that contains "S7 Distributed Safety" in its
DisplayNamevalue. Right-click and Export the key first as a safety backup, then delete only the matching product GUIDs (do not delete sibling keys). - Repeat under
HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Productsfor 32-bit registry redirection.
Step 3 — Reset DCOM and security descriptors
- Open
dcomcnfg. - Navigate to Component Services → Computers → My Computer → DCOM Config.
- 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
- 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.
- Compare the SHA-256 of the
Setup.exewith 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. |
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:
- Right-click
Setup.exein the V5.4 SP5 Update 2 directory. - Select Run as administrator.
- When prompted, enter local administrator credentials — do not accept the elevation prompt under a non-admin domain account.
- 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
-
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 5after verification. -
Stop the Windows Installer service:
net stop msiserver. -
Insert or mount the SIMATIC Manager DVD or ISO for V5.7. Run
Setup.exeas administrator. Accept the license agreement and choose Install. - Reboot when prompted. The V5.7 setup requires a restart to finalize DCOM and WMI registrations.
- Mount and install the S7 F Configuration Pack V5.6 / V5.7 next.
-
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\. - Mount and install S7 Distributed Safety V5.4 SP5 Update 2 over the SP5 base.
- Reboot.
-
Re-enable UAC:
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 5 /f. - 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:
- 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)
- 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. - 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.
- Open
regeditand confirm the registry keyHKLM\SOFTWARE\Siemens\Automation\S7DS\5.4\ServicePackscontains the string "5.4.5.2". - Check
%ProgramFiles(x86)%\Siemens\Automation\S7DS\Bin\S7DSCfg.dllfor 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:
- Open the F-project in the SIMATIC Manager with V5.4 SP5 Update 2.
- Right-click the F-Program container in the project tree and select F-Block Container → Check Block Consistency.
- Identify any F-block whose safety signature is not referenced in the safety program. Cross-reference with the Safety Program Structure document.
- Delete unreferenced F-blocks, recompile the safety program, and re-run the consistency check.
- Export the project to
.s7pformat with Archive → User-defined Archive. - 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.
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
dcomcnfgunder 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.exefor KVL packages skips the InstallShield prerequisite scan, but it requires the SSF service to be running. Start it withnet 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 |
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.