I want to get a list of my installed programs.
I know how it works with powershell : Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize .
But I want it with php. Now I have this:
<?php
$Wshshell= new COM('WScript.Shell');
$data = $Wshshell->regRead('HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall');
?>
I get this error: Source: WshShell.RegRead
Description: Unable to open registry key "HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" for reading
"HKEY_LOCAL_MACHINE\\Software\\.... - pmahommeUninstall? How are you displaying them? I don't see anything that loops or echoes any data. - pmahommevar_dump($data->value);- Do you see anything? You may need to loop over the results. - pmahomme