NAME

Win32::CheckDotNet - Perl extension for checking installed .NET versions

SYNOPSIS

  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;

DESCRIPTION

This module inspects the Windows Registry to check if .NET is installed. Various versions can be checked.

METHODS

check_dotnet_1_0()

Checks if .NET version 1.0 is installed.

check_dotnet_1_1()

Checks if .NET version 1.1 is installed.

check_dotnet_2_0()

Checks if .NET version 2.0 is installed.

check_dotnet_3_0()

Checks if .NET version 3.0 is installed.

check_dotnet_3_5()

Checks if .NET version 3.5 is installed.

check_dotnet_4_0_full()

Checks if .NET version 4.0 (full) is installed.

check_dotnet_4_0_client()

Checks if .NET version 4.0 (client) is installed.

check_dotnet_4_5()

Checks if .NET version 4.5 is installed.

_check_registry_key( $key )

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.

$key has to have / as delimiter.

SEE ALSO

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.

AUTHOR

Alexander Becker, <c a p f a n .a-t' g m x ^dot. d e>

COPYRIGHT AND LICENSE

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.