[v4.0.4] Get-ADTMsiTableProperty - ExpandProperty not found

I get an error, if i want to read a Property from the Property Table
below there is the log from Adobe Reader msi. I tried some other msi and get the same error

ProductCode-Property could not be found

<![LOG[[Uninstall] :: Reading data from Windows Installer database file [C:\Program Files (x86)\Common Files\enteo\RepositoryCache\107964\rev\1\Extern$\Files\AcroPro.msi] in table [Property].]LOG]!><time=“13:48:55.514+60” date=“1-23-2025” component=“Get-ADTMsiTableProperty” context=“NT-AUTORITÄT\SYSTEM” type=“1” thread=“7532” file=“C:\Program Files (x86)\Common Files\enteo\RepositoryCache\107964\rev\1\Extern$\PSAppDeployToolkit\PSAppDeployToolkit.psm1”>
<![LOG[[Uninstall] :: Error Record:

Message : Die ProductCode-Eigenschaft kann nicht gefunden werden.

FullyQualifiedErrorId : ExpandPropertyNotFound,Microsoft.PowerShell.Commands.SelectObjectCommand
ScriptStackTrace : bei Get-ADTMsiTableProperty, C:\Program Files (x86)\Common Files\enteo\RepositoryCache\107964\rev\1\Extern$\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 8143
bei Uninstall-ADTDeployment, C:\Program Files (x86)\Common Files\enteo\RepositoryCache\107964\rev\1\Extern$\Invoke-AppDeployToolkit.ps1: Zeile 168
bei , C:\Program Files (x86)\Common Files\enteo\RepositoryCache\107964\rev\1\Extern$\Invoke-AppDeployToolkit.ps1: Zeile 276

PositionMessage : In C:\Program Files (x86)\Common Files\enteo\RepositoryCache\107964\rev\1\Extern$\Invoke-AppDeployToolkit.ps1:168 Zeichen:99
+ … SIFile" -Table ‘Property’ | Select-Object -ExpandProperty ProductCode
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]LOG]!><time=“13:49:01.150+60” date=“1-23-2025” component=“Invoke-AppDeployToolkit.ps1” context=“NT-AUTORITÄT\SYSTEM” type=“3” thread=“7532” file=“C:\Program Files (x86)\Common Files\enteo\RepositoryCache\107964\rev\1\Extern$\Invoke-AppDeployToolkit.ps1”>
<![LOG[[Uninstall] :: Bypassing Show-ADTDialogBox [Mode: NonInteractive]. Text: Error Record:

Message : Die ProductCode-Eigenschaft kann nicht gefunden werden.

FullyQualifiedErrorId : ExpandPropertyNotFound,Microsoft.PowerShell.Commands.SelectObjectCommand
ScriptStackTrace : bei Get-ADTMsiTableProperty, C:\Program Files (x86)\Common Files\enteo\RepositoryCache\107964\rev\1\Extern$\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 8143
bei Uninstall-ADTDeployment, C:\Program Files (x86)\Common Files\enteo\RepositoryCache\107964\rev\1\Extern$\Invoke-AppDeployToolkit.ps1: Zeile 168
bei , C:\Program Files (x86)\Common Files\enteo\RepositoryCache\107964\rev\1\Extern$\Invoke-AppDeployToolkit.ps1: Zeile 276

PositionMessage : In C:\Program Files (x86)\Common Files\enteo\RepositoryCache\107964\rev\1\Extern$\Invoke-AppDeployToolkit.ps1:168 Zeichen:99
+ … SIFile" -Table ‘Property’ | Select-Object -ExpandProperty ProductCode
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]LOG]!><time=“13:49:01.198+60” date=“1-23-2025” component=“Show-ADTDialogBox” context=“NT-AUTORITÄT\SYSTEM” type=“1” thread=“7532” file=“C:\Program Files (x86)\Common Files\enteo\RepositoryCache\107964\rev\1\Extern$\PSAppDeployToolkit\PSAppDeployToolkit.psm1”>
<![LOG[[Finalization] :: [Adobe_AcrobatReaderx64_2024_01] uninstall completed with exit code [60001].]LOG]!><time=“13:49:01.246+60” date=“1-23-2025” component=“Close-ADTSession” context=“NT-AUTORITÄT\SYSTEM” type=“3” thread=“7532” file=“C:\Program Files (x86)\Common Files\enteo\RepositoryCache\107964\rev\1\Extern$\PSAppDeployToolkit\PSAppDeployToolkit.psm1”>
<![LOG[[Finalization] :: *******************************************************************************]LOG]!><time=“13:49:01.246+60” date=“1-23-2025” component=“Close-ADTSession” context=“NT-AUTORITÄT\SYSTEM” type=“1” thread=“7532” file=“C:\Program Files (x86)\Common Files\enteo\RepositoryCache\107964\rev\1\Extern$\PSAppDeployToolkit\PSAppDeployToolkit.psm1”>

Try again with PSADT v4.0.5

This looks like the line is being called from your code vs. ours. I’ve amended the example of how to use Get-ADTMsiTableProperty in - Amend bad example for `Get-ADTMsiTableProperty`. · PSAppDeployToolkit/PSAppDeployToolkit@c0cfc50 · GitHub as it’s not an object anymore, rather it’s a ReadOnlyDictionary as it needed to be a type with case-sensitive keys as MSI files can have properties like productcode and PRODUCTCODE legally within a table.