I would like to write a Perl script that checks if .NET 3.5 is installed. I want to check it because it calls some .NET stuff which does not work if it is missing.
Is there an easy way to determine if .NET is installed?
I would like to write a Perl script that checks if .NET 3.5 is installed. I want to check it because it calls some .NET stuff which does not work if it is missing.
Is there an easy way to determine if .NET is installed?
If you trust the Registry, you can use the Win32::TieRegistry module from CPAN and look for the right key based on the Microsoft documentation for How to: Determine Which .NET Framework Versions Are Installed. It's a bit tricky if you need .NET 3.5 and above because you have to check for different keys for versions below or above 4.