这里以net4.0为例.net
//检测 是否安装了.net4.0io
result=Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\.NETFramework\\policy\\v4.0");
if (result == false) then gis
//安装指定路径下的4.0安装包 result=File.Run(SessionVar.Expand("%TempLaunchFolder%\\dotnetfx4.0.exe"),"","",SW_SHOWNORMAL, true); end