Is there a straightforward way for a C# program (deployed with Microsoft
Installer) to retrieve its own installation information (serial number,
etc.) from the Registry?
The information is there, but right now, the only way I can think of is to
search (under HKLM\software\...lots of stuff...\installer\userdata\...etc.
etc. until it finds a subtree containing its own name and other identifying
information.
Failing that, can anyone point me to an algorithm for depth-first search in
the Registry? I'm guessing it will be straightforward but am not exactly
sure how the Registry is accessed.
Thanks!
--
Michael A. Covington - Artificial Intelligence Ctr - University of Georgia
"In the core C# language it is simply not possible to have an uninitialized
variable, a 'dangling' pointer, or an expression that indexes an array
beyond its bounds. Whole categories of bugs that routinely plague C and C++
programs are thus eliminated." - A. Hejlsberg, The C# Programming Language