> For example I want to recover Software information installed into my Pc,
> is
> the best way read this data from the registry ?
I guess I'm stuck on "recover" which often means "restore to a normal
state".
If you are talking about enumerating all the software and doing it by
scanning the registry, well, then you can get close, but there is nothing
that prevents a simple copy of an application to a folder without an
intervening registry update.
That said, many applications store their installed locations here:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\
and a widget to uninstall here:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\
Regards,
Will
German - 24 Jun 2005 14:55 GMT
Yes, I do not want to "restore to a normal state", I want to count it and
identify every software installed into Pc.
How can we read the list containing of
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\ or
export this information from Visual C++ ?
Thanks Again,
> > For example I want to recover Software information installed into my Pc,
> > is
[quoted text clipped - 18 lines]
> Regards,
> Will
William DePalo [MVP VC++] - 24 Jun 2005 15:20 GMT
> How can we read the list containing of
> HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\ or
> export this information from Visual C++ ?
You can use the registry functions that I mentioned in my earlier reply to
you. This points to the registry overview in the docs:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/re
gistry.asp
ATL provides a CRegKey class which you might want to look at as well.
Regards,
Will
German - 02 Jul 2005 01:12 GMT
Sure !!
And it works very good !!
Thanks again William DePalo
Best Regards,
German Medina
> > How can we read the list containing of
> > HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\ or
[quoted text clipped - 9 lines]
> Regards,
> Will