EPM - The configuration data for this product is corrupt error during uninstall

EPM - The configuration data for this product is corrupt error during uninstall

107
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:59 PM


Symptom


EPM Agent Uninstall fails with error, "The configuration data for this product is corrupt. Contact your support Personnel" 

 

The msiinstaller logs shows

Unexpected or missing value (name: 'PackageName', value: '') in key 'HKLM\Software\Classes\Installer\Products\42FA83A434E037947850FF56D28FF18A\SourceList'

 

Note: 42FA83A434E037947850FF56D28FF18A signifies EPM Agent Version 24.8.0.2240

 

If you have a Procmon log during the failed uninstall, if you filter by path contains 42FA83A434E037947850FF56D28FF18A, you should see that msiexec.exe tries to perform operation ReqQueryValue on HKCR\Installer\Products\42FA83A434E037947850FF56D28FF18A\SourceList\PackageName and gets result "NAME NOT FOUND"

 

If you check the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\42FA83A434E037947850FF56D28FF18A you would likely discover that ProductName value actually does exist



Environment


24.8;25.6;25.10 EPM EPM Agent

Microsoft Windows



Cause


  • During the install of EPM, information is added in the registry about the cached windows installer package. This package resides in C:\Windows\Installer
  • The registry location for this entry is :
    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\42FA83A434E037947850FF56D28FF18A\InstallProperties
    Key : LocalPackage
    Value : %msi location%
  • Note 42FA83A434E037947850FF56D28FF18A signifies 24.8.0.2240
  • If somehow the msi installer at : "C:\Windows\Installer" has been renamed/restricted/removed , the uninstall error can happen


Resolution


Save the following script as a bat file.  Edit the location as needed.  Note this script is to fix the uninstall for 24.8.0.2240

REM Set variables


set KEY="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\42FA83A434E037947850FF56D28FF18A\InstallProperties"

set VALUENAME=LocalPackage

set DATATYPE=REG_SZ

set NEWVALUE="C:\Temp\VFAgentSetup-24.8.0.2240\VFAgentSetupX64.msi"

REM Modify the registry value

reg add %KEY% /v %VALUENAME% /t %DATATYPE% /d "%NEWVALUE%" /f

REM Display the result

reg query %KEY% /v %VALUENAME%

Run the script as an administrator. This script should fix the "Installer" data for this product so that during the uninstallation, msiexec.exe knows where to find the msi.

Try the msiexec.exe command to uninstall the product 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj00000019pFCAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail