--%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --%%% %%% --%%% This script tests for the presence of the .NET Framework %%% --%%% %%% --%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function DNET_IsDotNetVersionInstalled() local strPath=_WindowsFolder.."\\Microsoft.NET\\Framework" tbVersion={} strVersion = "0.0.0.0" if not Folder.DoesExist(strPath) then strVersion = "0.0.0.0" else tbFolder = Folder.Find(strPath, "*", false, nil); if tbFolder then for index, strFolder in tbFolder do Version=String.Mid(strFolder, String.ReverseFind(strFolder, "\\") + 1, -1); Version=String.Replace(Version, "v", "", false) Version = String.Left(Version, 3); tbVersion[index]= Version..".0.0" end strVersion=tbVersion[Table.Count(tbVersion)] else strVersion = "0.0.0.0" end end return strVersion end