Win32::CheckDotNet - Perl extension for checking installed .NET versions
use Win32::CheckDotNet; my $check = Win32::CheckDotNet->new; printf ".NET 4.5 full -> %s\n", $check->check_dotnet_4_5; printf ".NET 4.0 full -> %s\n", $check->check_dotnet_4_0_full; printf ".NET 4.0 client -> %s\n", $check->check_dotnet_4_0_client; printf ".NET 3.5 -> %s\n", $check->check_dotnet_3_5; printf ".NET 3.0 -> %s\n", $check->check_dotnet_3_0; printf ".NET 2.0 -> %s\n", $check->check_dotnet_2_0; printf ".NET 1.1 -> %s\n", $check->check_dotnet_1_1; printf ".NET 1.0 -> %s\n", $check->check_dotnet_1_0;
This module inspects the Windows Registry to check if .NET is installed. Various versions can be checked.
Checks if .NET version 1.0 is installed.
Checks if .NET version 1.1 is installed.
Checks if .NET version 2.0 is installed.
Checks if .NET version 3.0 is installed.
Checks if .NET version 3.5 is installed.
Checks if .NET version 4.0 (full) is installed.
Checks if .NET version 4.0 (client) is installed.
Checks if .NET version 4.5 is installed.
Checks for a given .NET registry key. Returns 1 if registry key is present and has value 0x00000001. Returns 0 if registry key is not present or does not equals 0x00000001.
0x00000001
$key has to have / as delimiter.
$key
/
Once I asked how to heck for an installed .NET version. The answer was a link to the list of registry keys that identify if .NET is installed and the Tie::Registry module.
http://stackoverflow.com/questions/199080/how-to-detect-what-net-framework-versions-and-service-packs-are-installed/199783#199783
http://stackoverflow.com/questions/18188507/how-can-i-check-if-net-is-installed-using-perl
Alexander Becker, <c a p f a n .a-t' g m x ^dot. d e>
Copyright (C) 2013 by Alexander Becker
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.16.3 or, at your option, any later version of Perl 5 you may have available.
To install Win32::CheckDotNet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::CheckDotNet
CPAN shell
perl -MCPAN -e shell install Win32::CheckDotNet
For more information on module installation, please visit the detailed CPAN module installation guide.