Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks,

I've done some research on the Win32::TieReguistry module, and it seems to be what I need. I'm trying to see if apache exists and grab its install path. The problem I face is that I'm not sure Apache wll always be installed to the default directory of: "/Program files/Apache group/apache".
Is it possible with the module to locate the Apache install path via the registry no matter where it exists?

Thanks

Replies are listed 'Best First'.
Re: Locating an apache install with Perl
by BUU (Prior) on Jul 31, 2003 at 01:01 UTC
    It seems a better solution would be to just use File::Find and supply a wanted function that finds detects apache, eg:
    use File::Find; File::Find::find(\&wanted,'/'); sub wanted { die "$File::Find::dir is the apache dir" if $File::Find::name=~/[aA]p +ache\.exe/; }
Re: Locating an apache install with Perl
by ralphie (Friar) on Jul 31, 2003 at 13:25 UTC
    if apache stores a path key, sure. i've done something like this with other packages. i didn't see anything pertinent in a quick run through the apache documentation pages, so you might have to do an install and check for whatever apache installs under //HKEY_LOCAL_MACHINE/Software.