المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to get remote registry uninstallstring date or key modified time?



C# Programming
09-26-2012, 08:22 PM
I would like to know when a program was installed on a remote machine.

I can read HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\[XXXXXXX] remotely, but I can't seem to translate the UninstallString into a date remotely via MSIGetProductInfo, so I then tried to see if I could read the keys last modified date via RegEnumKeyEx and did not have success there either. If anyone knows how to do this, I would be very appreciative, I cannot find a single working example of RegEnumKeyEx so that I can plug in a server name, hive, path and key name to test with.

Thank you for reading.