I dislike cookie-files, but love cookies.
The method of checking should depend on the installation-type, right?
But I agree that checking the registry is a good role to apply as a first-choice.
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!