I am using an automation reference to open up DIAdem. I have 8.1 and 9.0 installed. If I run DIAdem 8.1 and close it, then the reference gives me 8.1. If then I run DIAdem 9.0, the reference gives me 9.0. So the computer must be keeping track of the program that was run most recently. How does it do this?
I don't have two versions on this computer so I can't play with it to find the exact key, it's probably going to be under HKEY_CLASSES_ROOT\TypeLib\ somewhere, but it'll be under the Class ID rather than the name.