Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to know perl installed


2 replies to this topic

sakbuddika

sakbuddika
  • Members
  • 8 posts

Posted 23 May 2002 - 13:45

I want to know, whether the user has perl installed in his machine, if not I am supposed to install perl in his machine. Is there a way to check this? There is no any registry key involved; there is an environment variable set (PATH). The only method is to type perl –v in the command prompt. I get this output.

This is perl, v5.6.1 built for MSWin32-x86

Copyright 1987-2001, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.


Please give me a solution for this matter.

dkenny

dkenny
  • Members
  • 4 posts

Posted 23 May 2002 - 14:29

Check the path environment variable for Perl, as you said?

SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment";

sakbuddika

sakbuddika
  • Members
  • 8 posts

Posted 23 May 2002 - 19:06

Thanks dkenny ,

If user has installed perl before, his path will be different. So do you think I have to look for the word 'perl' in the path.
Regards
-sakbuddika