
How to check if a program is installed (or find it's path)
If the existing program was mine, I would use the registry to keep track of
the install location and then read the path from the registry. Using the
GetSetting and SaveSetting function is a quick and easy way to do this.
If I were trying to install to a third party software location, and I knew
that the existing software had registry entries that included the path, I
might try to do the registry thing as well.
If I had no clue as to what or where I was installing - for example, my app
just needs to be in the same folder with "foobar.dll" then I would do a
search of the hard drive to locate the file and use that information.
But that's just me . . . And it sounds like you were thinking the same
thing?
Hope that helps.
-- Charles H. Davidson
Quote:
>I need to run an installation that installs into the same directory as
>an existing program - how do I do it ?
>Do I have to run through the registry or do I have to search the hard drive
>looking for a particular file and then pull the directory from that
>(infact any tips on how to do both would be good as this is for bith 16 &
32
>bit systems.
>Cheers
>Nick