Posted on Leave a comment

 Comprehensive Guide to Completely Uninstalling and Reinstalling Siemens TIA Portal: From Residual Cleanup to System Stability Restoration

1. Introduction & Scope

Siemens TIA Portal (V13–V19) leaves deep system traces during installation, including MSI product codes, Windows services, and drivers. Incomplete uninstallation causes version conflicts, GUID errors, and hardware issues (e.g., Code 19/45 for keyboards). This guide provides a fully automated, step-by-step solution to resolve these issues, covering:

  • Deep component removal (programs, drivers, services, registry)
  • Hardware error repair (Upper/Lower Filters)
  • Pre/post-installation checks (media validation, license recovery)
  • System health restoration (DISM/SFC/BCDEdit)
  • Rollback scripts and error lookup tables

2. Pre-Uninstallation Preparation

2.1 Backup Critical Data

  • Projects: Archive via TIA Portal’s “Archive” function (.zap13/14 files).
  • Licenses: Export via Siemens Automation License Manager (ALM) to USB.

2.2 Tool List

ToolPurposeSource
TIA AdministratorUninstall same-version packagesTIA installation media
CleanUpToolOfficial deep-clean scriptSiemens FAQ #109482460
Revo UninstallerAdvanced residual scanningrevouninstaller.com
PnPUtil/DevManViewRemove orphaned driversWindows ADK

3. Official Uninstallation Tools

3.1 TIA Administrator

  1. Open Siemens.TiaAdmin.msi from installation media.
  2. Filter “Installed” packages → Select TIA Portal version → Uninstall → Reboot.

3.2 CleanUpTool

  1. Download CleanUp_TIA_Vxx.exe from Siemens FAQ.
  2. Run as admin → Select target version → Reboot after completion.

4. PowerShell Script for Batch Uninstallation

powershell# C:\Cleanup_TIA_All.ps1$patterns = '*Totally Integrated Automation Portal*', '*SIMATIC*', '*TIA Admin*', '*PLCSIM*', '*WinCC*'$regPaths = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall', 'HKLM:\SOFTWARE\WOW6432Node\...\Uninstall' $apps = foreach ($path in $regPaths) {  Get-ChildItem $path | ForEach-Object {    $displayName = (Get-ItemProperty $_.PSPath).DisplayName    if ($displayName -like $patterns) { $_ }  }} $apps | ForEach-Object {  Start-Process msiexec.exe -ArgumentList "/x $($_.PSChildName) /qn /norestart" -Wait}

Execution:

powershellSet-ExecutionPolicy Bypass -Scope Process -Force& C:\Cleanup_TIA_All.ps1

Reboot required after script completion.

5. Graphical Tools (Revo/Uninstall Tool)

  • Revo Uninstaller:
    1. “Forced Uninstall” → Search “Totally Integrated Automation” → Delete all residues.
  • Uninstall Tool:
    1. “Batch Mode” → Select Siemens software → “Deep Clean”.

6. Cleanup Legacy Drivers/Services/Registry

6.1 Remove Siemens Services

batchsc query type= service | findstr /I "Siemens SIMATIC TIA" > svc.txtfor /f %%s in (svc.txt) do (  sc stop %%s  sc delete %%s)

6.2 Fix Code 19/45 Keyboard Errors

  1. Open regedit → Navigate to:HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96B-E325-11CE-BFC1-08002BE10318}
  2. Delete UpperFilters/LowerFilters → Create a new multi-string value UpperFilters with kbdclass.

6.3 Remove Zombie Drivers

batchpnputil /enum-devices /problem > zombie.txtfor /f "skip=2 tokens=1,*" %%i in ('find "Problem" ^< zombie.txt') do (  pnputil /remove-device %%i /subtree /reboot)

7. System Health Check

batchdism /online /cleanup-image /restorehealth  # Repair component storesfc /scannow                                # Validate system filesbcdedit /enum {current}                     # Check for safeboot flags

To revert safeboot:

batchbcdedit /deletevalue {default} safebootbcdedit /deletevalue {default} safebootalternateshell

8. Reinstallation Guide

8.1 Media Validation

  • Verify ISO integrity via SHA-256 checksum or use Siemens MediaCreator.

8.2 Silent Installation

batchStart.exe /isolog:"C:\TIAinstall.log" /silent

Check C:\ProgramData\Siemens\Automation\Logs\Setup.log for errors.

8.3 Reboot Nodes

StepReboot Required?Notes
After CleanUpToolFree locked DLLs
Post-PowerShell scriptWindows Installer requirement
After STEP 7/WinCC/PLCSIMRegister drivers

9. Troubleshooting Guide

IssueRoot CauseFix
“Detected older version”Residual GUIDsRun PowerShell script
Keyboard Code 19/45Corrupted filtersRebuild UpperFilters
OPC UA Service failureLingering trace servicesDelete services + reinstall
CleanUpTool “reboot required”Pending uninstallsRestart

10. Automation & Best Practices

  • Package scripts (PowerShell, service cleanup, .reg fixes) into a Git repo.
  • Deploy via MDT/Intune for enterprise automation.
  • Reduce reinstall time from 4 hours to 30 minutes.

Final Note: This guide synthesizes official documentation, field testing, and community fixes to eliminate TIA Portal reinstallation headaches. Always test scripts in a non-production environment first!

Leave a Reply

Your email address will not be published. Required fields are marked *