- In function .onInit, see if the registry hive for the required program is present in HKLM > Software
- If the hive is present, read the value of the version entry, which is expected in the format "9.2.1.1548"
- Compare this value with the required version (9.2.x.x). If the first two numbers of the version match, proceed with the installation. If the numbers differ, then abort the installation and report a relevant message.
I've seen some samples that check if a specific version of .NET is installed, but they seem to be far more complicated than what I'm aiming for. Is there an existing sample I can use as a skeleton? Am I on the right track as far as the process I've outlined above? What would I need to do to compare the version number effectively?