如何以编程方式知道.Net框架是否已完全安装. [英] How to programmatically know if .Net framework is fully installed.

查看:63
本文介绍了如何以编程方式知道.Net框架是否已完全安装.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个自定义设置,我从自定义操作中调用.Net函数.此外,此安装程序还会检查是否已安装.Net Framework4.o.如果未安装,则安装向导将成功终止安装.

I have a custom setup that I call .Net functions from custom actions. Also this setup checks if .Net framework 4.o is installed as a pre-requisite. If not installed, the installation wizard terminates the installation successfully. 

如果我安装了.Net framework 4,并且继续安装我的安装向导而没有重新启动计算机以完成.Net安装,则CCPSearch会发现已安装了所需的.Net版本,并继续执行安装向导.但是执行失败 .Net驱动的自定义操作.如果我重新启动计算机并完成.Net安装,然后运行安装程序,则自定义操作将毫无问题地执行.

If I install .Net framework 4 and continue to install my installation wizard without restarting the computer to complete the .Net installation, CCPSearch finds that the required .Net version is installed and continues the setup wizard. But it fails to execute .Net driven custom actions. If I restart the computer and complete the .Net installation and then run the setup, the custom actions are executes without any problem. 

这意味着需要重新启动计算机才能完成.Net的安装(我可能是错的:p).有没有一种方法可以确定.net是否未完全安装,所以我可以以编程方式检查它并终止安装提示 最终用户在安装安装程序之前重新启动PC?

This means the computer needs to be restarted to complete the .Net installation (i could be wrong :p). Is there a way to find if the .Net is not installed completely, so I can programmatically check this and terminate the installation prompting the end user to restart the PC before installing the setup ?

推荐答案

卡尔帕,

我正在将您的主题移至.NET论坛,以获取快速响应.

I am moving your thread to .NET forum for getting quick response.


这篇关于如何以编程方式知道.Net框架是否已完全安装.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆