這裏以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