Hi,
I have an application that I am wanting to optionally install a component of depending on the presence of other software on the system. I have been able to get this working by specifying the exact registry key of the other program. The only problem is is that the other program uses the version number of its program within its registry key. Under that registry key is the value I need, the install path of the program. I then pass this path within the searched variable to my installer program (conditionally, if the value is not zero).
e.g. I search directly for
HKEY_LOCAL_MACHINE\SOFTWARE\Other Program\2.5.6\InstallPath
that is one search and then it has its own install and uninstall custom action. Then again for 2.5.7, then 2.5.8 ... ad infinitum.
There has to be a better way.
What I would REALLY like is if I can search the registry and return the first match to a wildcard expression, thus since only one 2.x.x version of 'Other Program' can be installed at once, and I just want to get whereever they installed it, I could do a search for
HKEY_LOCAL_MACHINE\SOFTWARE\Other Program\2.*\InstallPath
or even
HKEY_LOCAL_MACHINE\SOFTWARE\Other Program\2.?.?\InstallPath
and get that into a variable, and be able to handle many different versions of program (of that family) with my installer/uninstaller actions. Then I don't have to do more work and reissue my installer when 'Other Program' updates.
Any hints/help on this? Is this currently possible? Thanks.
Derek
FOLLOW US
Get the latest news in Application Packaging