1 # https://learn.microsoft.com/en-us/windows/win32/msi/database-tables
15 $view = $msi.OpenView
("select * from " + $name)
17 while ($record = $view.Fetch
()) {
18 Write-Host ($name + ": " + ($columns | ForEach-Object {"'" + $record.StringData
($_) + "'"}))
23 $installer = New-Object -ComObject WindowsInstaller
.Installer
24 $msi = $installer.OpenDatabase
($file, 0)
26 printTable
-msi
$msi -name
"Component" -columns
1,3
27 printTable
-msi
$msi -name
"Directory" -columns
1,2,3
28 printTable
-msi
$msi -name
"File" -columns
1,2,3
29 printTable
-msi
$msi -name
"Shortcut" -columns
1,2,3,4