Resolving TIA Portal V13 Installation Error 7ab4d.msi After BSOD
Siemens TIA Portal V13 (Totally Integrated Automation Portal, released 2014) is the engineering framework used to configure SIMATIC S7-1200, S7-1500, ET 200, SINAMICS drives, SIMOTION, HMI Panels, and WinCC V13 SCADA stations. The installation package is built on Microsoft Windows Installer (MSI) technology and stores staged components in the protected C:\Windows\Installer cache and corresponding HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer registry hive. A blue screen (BSOD) that interrupts the installer mid-transaction can leave the system in a half-installed state where the MSI database cache is corrupted, the registry still references the missing file, and every subsequent re-run of Setup.exe aborts with "Failed to open Windows Installer database; C:\Windows\Installer\7ab4d.msi" (or a sibling hash such as 8cbb96.msi, a1f3e2.msi). This article documents the engineer-grade recovery procedure used to clear the orphan reference and complete the TIA Portal V13 install on Windows 7 Enterprise 64-bit.
1. Problem Description and Symptom Matrix
The error pattern is deterministic: a clean Windows 7 SP1 x64 workstation, the TIA Portal V13 DVD mounted or extracted, the user double-clicks Start.exe > Setup.exe, and within a few seconds the installer aborts. The visible dialog reads:
Failed to open Windows Installer database.
C:\Windows\Installer\7ab4d.msi
The hash suffix in the filename (e.g., 7ab4d.msi, 8cbb96.msi) is a Windows-generated identifier assigned when the package is first cached. It changes every time the installer is launched, so two consecutive attempts may report different filenames — this is normal and not an indication that the DVD image is corrupt.
| Observed Error Text | Error Code | Source | Recovery Path |
|---|---|---|---|
| Failed to open Windows Installer database C:\Windows\Installer\7ab4d.msi | 0x80004005 / E_FAIL | msi.dll | Delete orphan .msi + registry reference (this article) |
| The Windows Installer service could not be accessed | 1719 | msiexec.exe | Re-register msiexec, start service |
| This installation package could not be opened | 1612 | msi.dll | Re-stage .msi from DVD or remove orphan |
| Another installation is already in progress | 1500 | msiexec.exe | End msiexec.exe task, clear %TEMP% |
| Access is denied | 5 | msi.dll | Reset ACL on C:\Windows\Installer (DACL reset) |
| The system cannot open the device or file specified | 2 | kernel32 | Restore missing .msi from DVD source |
2. Root Cause Analysis
The Windows Installer engine (msiexec.exe, version 5.0.x for Windows 7 SP1) uses two coordinated repositories to track installed applications:
-
File cache —
C:\Windows\Installer(hidden, system, ACL:SYSTEM:F / Administrators:F / Users:RX). All MSI/MSP packages installed on the machine are copied here under hash names so they can be repaired or uninstalled without the original media. -
Registry database —
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\<S-1-5-18>\Productsand...\Installer\Folders. Each product key stores aLocalPackageREG_SZ pointing to the cached MSI file.
When Setup.exe starts a TIA Portal V13 install, it streams the MSI payload into the cache, then commits the registry keys. A BSOD, power loss, or forced reboot between these two steps creates an inconsistent state:
- The cache contains a truncated or zero-byte .msi (the file exists, but its size is < the expected several MB and the PE/MSI signature is invalid).
- The registry
LocalPackagepointer references the truncated file. - On every subsequent launch,
msi.dllopens the cache file, fails the consistency check, and returns the E_FAIL referenced above.
Because the registry still believes the product is partially installed, Windows Installer refuses to start a fresh transaction. Simply re-running the setup, re-extracting the DVD, or running Setup.exe /repair will not clear the reference; the installer always reads the registry before it touches the media. The fix is to delete the orphan file and its registry reference so the installer can stage a clean copy.
Siemens.exe, Start.exe, and product MSI files under DVD_1\Support\.... These source MSIs are not the same files that Windows Installer copies to C:\Windows\Installer under hash names. Renaming or re-copying the DVD files does not update the registry pointer, so the error persists.3. Prerequisites and Pre-Flight Checks
Verify the following before making any destructive change to C:\Windows\Installer or the registry:
- OS eligibility — TIA Portal V13 (without Update) is supported on Windows 7 SP1 (32/64-bit) Professional, Enterprise, and Ultimate. TIA Portal V13 SP1 also supports Windows 8.1 and Windows Server 2012 R2. The DVD is not supported on Windows 10 / 11 directly; on those OS versions, upgrade to TIA Portal V15.1 or later.
-
.NET Framework prerequisites — .NET Framework 4.5.x is installed. Verify with
reg query "HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" /v Release. The value378389or higher is required. -
Administrator context — Run
cmd.exeas Administrator (right-click → "Run as administrator"). UAC must not be silently blocking the writes toC:\Windows\Installer. -
Windows Installer service — Confirm the service is running:
sc query msiserver.STATE: 4 RUNNINGis expected. If it isSTOPPED, runsc start msiserverand set the start type toManual(the service stops when not in use by design). -
Free disk space — Minimum 20 GB free on
C:for the full TIA Portal V13 install (STEP 7 V13, WinCC V13, S7-PLCSIM V13, SINAMICS Startdrive V13, and component media). -
Pending reboots — No pending restarts. Run
shutdown /ato abort any pending restart, then complete all outstanding Windows Updates and reboots before continuing. -
Antivirus exclusion — Temporarily disable or exclude the TIA Portal install path and
C:\Windows\Installerfrom real-time AV scanning. Some endpoint protection products quarantine MSI files mid-write, which recreates the same corruption symptom.
4. Step-by-Step Resolution
The procedure below is the field-proven recovery sequence. It removes the orphan reference without uninstalling any other TIA Portal components that may already be present (e.g., a previous V12 install or a partial V13 SP1).
4.1 Reveal the Hidden Installer Cache
- Open Control Panel → Folder Options (Windows 7: also accessible via Organize → Folder and search options in any Explorer window).
- Switch to the View tab.
- Select "Show hidden files and folders".
- Uncheck "Hide protected operating system files (Recommended)". Confirm the warning dialog.
- Click Apply, then OK.
- Navigate to
C:\Windows\Installer. The folder will now show hash-named MSI/MSP files. Do not open or run any of these files directly.
4.2 Delete the Orphan .msi File
- In
C:\Windows\Installer, sort by Size. - Identify the file named in the error dialog (e.g.,
7ab4d.msi). - Right-click the file → Properties and confirm the file size. A corrupted file is typically 0 KB or a few hundred KB instead of the expected 5–200 MB for TIA Portal V13 product MSIs.
- Close Properties, then Shift+Delete the file to bypass the Recycle Bin. Confirm the elevation prompt.
- If the OS reports "Access is denied", take ownership: right-click → Properties → Security → Advanced → Owner → change to
Administrators, apply, then retry the delete.
Equivalently, from an elevated command prompt:
takeown /f "C:\Windows\Installer\7ab4d.msi" /a
icacls "C:\Windows\Installer\7ab4d.msi" /grant Administrators:F
del /f /q "C:\Windows\Installer\7ab4d.msi"
4.3 Remove the Orphan Registry Reference
The registry keys that point to the corrupt MSI live under the product hive. Open regedit.exe as Administrator and perform the following searches. Back up the registry hive first: File → Export → Selected branch → Installer and save as installer-backup.reg.
-
Search 1 — by filename: Press Ctrl+F, search for
7ab4d.msi(or the hash from your error). Delete each value-data match that contains the full path. Only deleteREG_SZvalues namedLocalPackageorLocalPatchPackage; leave productInstallSource,DisplayName, and similar values intact. - Search 2 — by folder path: Press F3 to repeat the search until the message "Finished searching the registry" appears. Common hive locations to inspect manually if the search misses a value:\li>
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\<ProductCode>\InstallProperties
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\<ProductCode>\Patches
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders
HKLM\SOFTWARE\Classes\Installer\Products\<ProductCode>
HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\<ProductCode>
The <ProductCode> GUIDs are 32-character hex strings, e.g., {4D8C9F71-3A8E-4B1C-9F5A-2E7B6C1A8D9F}. Identifying the right GUID requires matching the DisplayName string against "Siemens TIA Portal" or "STEP 7" in InstallProperties.
- Close regedit without saving (you have already exported the backup).
Products key. Removing a top-level product key for an already installed TIA Portal component (e.g., STEP 7 V12) will orphan that installation in Programs and Features. Only the LocalPackage value and the offending subkey should be removed.4.4 Clear the TEMP Directories
Stale .tmp MSI staging files in the user and system temp directories can re-introduce the same corruption on the next attempt.
- Open an elevated
cmd.exe. - Stop the Windows Installer service:
net stop msiserver(it will report "The Windows Installer service is not started" if it is already stopped — this is normal). - Delete the contents of the system temp directory:
del /f /s /q "%SystemRoot%\Temp\*.*"
del /f /s /q "%TEMP%\*.*"
del /f /s /q "C:\Users\<user>\AppData\Local\Temp\*.*"
- Optionally, rename the system temp folder and let the OS recreate it:
ren %SystemRoot%\Temp Temp.old. Windows will rebuild the folder on the next installer run. - Reboot the workstation. The reboot ensures that no lock handles from the previous failed install are still attached to
C:\Windows\Installer.
4.5 Re-Run the TIA Portal V13 Installer
- Insert or remount the TIA Portal V13 DVD. If the original media is on a network share, disconnect and reconnect to clear SMB locks.
- Right-click
Start.exe→ Run as administrator. TheStart.exeis the autorun launcher that detects prerequisites (MSXML 6.0, .NET 4.5, SQL Server 2012 Express, WinPcap 4.1.3) and pre-installs them before launching the main product installer. - On the language selection, accept English (default) and continue.
- Accept the license agreement and enter the Siemens Automation License Manager (ALM) license keys if available. The installer can proceed without keys in "Trial" mode for 21 days.
- Select the products to install. For a typical commissioning laptop, select: STEP 7 V13, WinCC V13, S7-PLCSIM V13, Startdrive V13, and the SIMATIC NET PC software component.
- Click Install. The setup will now pass the Windows Installer check, re-stage a fresh copy of every MSI in
C:\Windows\Installer, and write the registry keys for each product. - Allow 30–90 minutes for the full install. Do not interrupt the process; if a second BSOD occurs, restart the workstation and rerun
Setup.exewith the/reinstallswitch — it will detect the partial state and resume.
5. Verification
After the install completes, run the following checks to confirm a clean state and to catch any residual orphan references:
- Programs and Features inventory — Open Control Panel → Programs and Features. Confirm that STEP 7 V13, WinCC V13, S7-PLCSIM V13, and Startdrive V13 are listed with publisher "Siemens AG" and version "13.0.0.0" (or 13.0.1.0 for the SP1 update).
- TIA Portal launch — Launch TIA Portal from the Start menu. The first launch performs a one-time workspace initialization (typically 60–120 seconds). The Portal view should display the "Start" page with options to "Create new project", "Open existing project", and "Migrate project".
- Version verification — In TIA Portal, click Help → About. Confirm the version, build number, and that no red X marks indicate missing components.
-
Add new device — From the Portal view, click Add new device and confirm that the controller catalog includes S7-1200, S7-1500, ET 200SP, and ET 200AL. If the catalog is empty, the SIMATIC device description (SDDUP) installation is missing — rerun
Start.exeand select only the device libraries. -
Cache integrity — From an elevated
cmd.exe, list the MSI cache files larger than 5 MB:
dir /a /s "C:\Windows\Installer\*.msi" | findstr /R "MS.* 5[0-9][0-9][0-9][0-9][0-9][0-9][0-9]"
There should be roughly 30–60 large MSI files for a full TIA Portal V13 install. Any 0 KB file is a new orphan and should be removed as described in §4.2.
-
Service health —
sc query msiservershould returnSTATE: 1 STOPPED(the service is manual-start and only runs on demand) andSTART_TYPE: 3 DEMAND_START. -
Event log — Open Event Viewer → Windows Logs → Application. Filter for
Source = MsiInstaller. There should be no "Product: ... Installation failed" events from the current install attempt. Informational events withEvent ID 1040 / 1042 / 11728are expected and benign.
6. Alternative Recovery Methods
If the registry cleanup in §4.3 does not resolve the error — for example, because the orphan is a patch (MSP) rather than an MSI, or because the product code cannot be matched — use one of the following advanced procedures.
6.1 Force-Reinstall via msiexec
Use the msiexec command line to re-stage a known-good MSI directly from the DVD without invoking the registry cache:
msiexec /fvomus <path-to-DVD>\Siemens.Automation.Portal.V13.msi /l*v C:\Temp\tia_repair.log REINSTALL=ALL REINSTALLMODE=omus
| Switch | Effect |
|---|---|
/f |
Repair install (re-cache + re-register features) |
/v |
Verbose log output to specified file |
/o |
Reinstall if file is missing or older version |
/m |
Rewrite required registry values from the MSI |
/u |
Rewrite required user registry values |
/s |
Overwrite all shortcuts |
6.2 Reset the Windows Installer Database
If multiple orphan references are suspected, run the Microsoft Fix It / Program Install and Uninstall troubleshooter to scan the registry and rebuild the Programs and Features list. The tool is published under KB 2438651 and runs without network access.
6.3 Last-Resort: Re-Image the Workstation
If the workstation is shared with other engineering tools (EPLAN, TIA Multiuser Server, S7-PCT) and the registry cannot be guaranteed clean, the most reliable engineering practice is to re-image the laptop with a known-good Windows 7 SP1 x64 image and reinstall TIA Portal V13 cleanly. The cost of a 4-hour reinstall is typically lower than the risk of chasing cascading MSI errors across a long deployment.
7. Prevention and Field-Proven Caveats
- Never interrupt a TIA Portal install. The TIA setup writes 30+ MSI files to the cache, then 1,200+ registry keys. Any interruption between the MSI staging and the registry commit reproduces the exact error in this article.
-
Disable sleep/hibernate during install. Windows 7 power policies can put the laptop to sleep mid-install, which behaves like a BSOD for MSI purposes. Use
powercfg -change -standby-timeout-ac 0andpowercfg -change -hibernate-timeout-ac 0for the duration of the install. -
Exclude
C:\Windows\Installerfrom AV real-time scanning. Several endpoint protection suites (Symantec Endpoint Protection, Trend Micro OfficeScan, McAfee ENS) misclassify large MSI files and quarantine them mid-write. Configure an exclusion for the directory and the.msi/.mspextensions. - Snapshot the laptop before install. Use Windows Complete PC Backup, a Veeam Agent, or a vendor recovery partition to snapshot the disk immediately before the first TIA Portal install. Recovery from a snapshot is 5 minutes; full recovery from a corrupt registry is a day.
- Install TIA Portal V13 SP1 immediately after V13. SP1 (released October 2014) addresses several installer resilience issues and adds Windows 8.1 / Server 2012 R2 support. The upgrade install performs its own MSI consistency check and will report a clean state.
- Avoid parallel installs. Do not run other MSI installers (e.g., .NET updates, SQL Server cumulative updates) in parallel with the TIA setup. MSI is a single-threaded service in Windows 7, and concurrent transactions will deadlock.
8. Related Errors and Adjacent Troubleshooting
| Symptom | Likely Cause | Recommended Fix |
|---|---|---|
| Setup halts at "Checking prerequisites" with code 0x800F0906 | Windows Update service disabled or proxy blocking CBS | Enable wuauserv, configure WinHTTP proxy, or stage MSU packages offline via DISM /Online /Add-Package
|
| Setup halts during ALM install with code 1603 | Previous ALM install partially removed | Uninstall "Siemens Automation License Manager" via MsiExec /X{...} with product code from registry, then reinstall |
| WinCC V13 install fails with .NET 4.5 missing | WinCC V13 requires .NET 4.5.2 minimum | Download NDP452-KB2901907-x86-x64 from Microsoft, install, reboot, resume TIA setup |
| TIA Portal launches but shows "Siemens TIA Portal has stopped working" | Incompatible graphics driver (Intel HD 4000/4400 on Windows 7) | Update to Intel HD driver 15.36.x or later; or disable WPF hardware acceleration via HKCU\Software\Siemens\Automation\TiaPortal\DisableHWAccel=1
|
| S7-PLCSIM V13 fails to start with code 0xC0000142 | Missing Visual C++ 2010 SP1 Redistributable | Install vcredist_x64.exe from the DVD's Support\Vcredist folder |
| Setup completes but Start menu shortcuts are missing | User profile corruption | Recreate the user profile, or run ie4uinit.exe -ClearIconCache and re-pin shortcuts |
9. Documented Build Versions and Compatibility
| Build | Released | OS Support | Key Fixes vs. Base |
|---|---|---|---|
| V13.0 (base) | 2014-07 | Win 7 SP1 (x86/x64), Server 2008 R2 | Initial release for S7-1500 / ET 200SP |
| V13 SP1 (Update 1) | 2014-10 | Win 7 SP1, 8.1, Server 2012 R2 | Installer resilience, Windows 8.1 support, S7-1500 firmware 1.5 |
| V13 SP1 (Update 4) | 2015-06 | Win 7 SP1, 8.1, Server 2012 R2 | Stability fixes for online diagnostics, trace, PLCSIM |
| V13 SP1 (Update 9) — last V13 update | 2018-09 | Win 7 SP1, 8.1, Server 2012 R2 | Security hardening, end of life for V13 branch |
For active commissioning in 2024 and beyond, Siemens officially supports TIA Portal V17 (Win 10 1809+) and V18 (Win 10 20H2+). TIA Portal V13 is in the "Limited / Mature" lifecycle phase and is no longer recommended for new installations. The fix described in this article remains valid for any engineer maintaining a legacy commissioning laptop running Windows 7.
10. Frequently Asked Questions
Why does the error report a different .msi filename every time I run setup?
Windows Installer generates a new hash-suffixed name for every MSI it caches. After a BSOD, the orphan reference is to the first cached name (e.g., 7ab4d.msi); once you delete that file and the registry entry, the next run creates a new name (e.g., 8cbb96.msi) and reports a new error if the corruption repeats. This is expected and is not a sign of additional problems.
Can I skip the registry cleanup and just delete the .msi file?
No. The LocalPackage value in HKLM\SOFTWARE\...\Installer\UserData\...\Products\<GUID>\InstallProperties will still reference the deleted file, and Windows Installer will continue to abort with the same error. Both the file and the registry reference must be removed; the registry cleanup is the operation that actually unblocks the installer.
Is the C:\Windows\Installer folder the same on Windows 10 / 11?
Yes — the protected cache location is identical across Windows 7, 8.1, 10, 11, and Server editions. However, TIA Portal V13 is not officially supported on Windows 10/11; if you see this error on a newer OS, upgrade to TIA Portal V15.1 or later (V13 may install with compatibility shims but is not warrantied for runtime).
Will deleting the orphan .msi affect other TIA Portal components already installed?
No, provided you delete only the truncated file referenced by the error and only the matching LocalPackage registry value. Each TIA Portal product (STEP 7, WinCC, PLCSIM, Startdrive) has its own GUID and its own MSI in the cache. The other products' caches and registry entries are independent and must not be modified.
How long should the TIA Portal V13 install take on a modern SSD-equipped laptop?
A full install (STEP 7 V13 + WinCC V13 + S7-PLCSIM V13 + Startdrive V13 + SIMATIC NET) takes 25–45 minutes on a SATA SSD and 15–25 minutes on an NVMe drive with 16 GB RAM. If the install exceeds 90 minutes, the Windows Installer service is likely waiting on a stuck transaction; cancel, reboot, clear the %TEMP% folder, and re-run the setup.