本主题提供一个以 html/javascript 编写的脚本,管理员可以使用该脚本来确定系统上是否存在 .net framework 3.5。
复制代码 代码如下:
test for the .net framework 3.5
如果搜索“.net clr”版本成功,将显示以下类型的状态消息:
this machine has the correct version of the .net framework 3.5.
this machine's useragent string is: mozilla/4.0 (compatible; msie 7.0; windows nt 6.0; slcc1; .net clr 2.0.50727; .net clr 1.1.4322; infopath.2; .net clr 3.0.590; .net clr 3.5.20726; ms-rtc lm 8).
否则,显示以下类型的状态消息:
this machine does not have the correct version of the .net framework 3.5. the required version is v3.5.0.0.
this machine's useragent string is: mozilla/4.0 (compatible; msie 7.0; windows nt 6.0; slcc1; .net clr 2.0.50727; .net clr 1.1.4322; infopath.2; .net clr 3.0.590; ms-rtc lm 8).