我用VC#写了个WIN FORM 的程序,现在想安装在其他没有配置.NET环境的计算机上.是不是在那台计算机上安装好Framework就可以了?我想知道如何在安装程序的同时,让安装程序判断计算机是否已经安装了Framework,如果没有安装就先安装Framework,如果安装了就跳过,继续安装程序.

解决方案 »

  1.   

    使用vb6,或者vc6,写一个启动程序,自动启动框架安装程序,然后在安装你的程序就可以了
      

  2.   

    You can tell if the .NET Framework has been installed by looking for the MSCorEE.dll file in the %windir%\system32 directory. The existence of this file tells you that the .NET
    Framework is installed. However, several versions of the .NET Framework can be installed
    on a single machine simultaneously. If you want to determine exactly which versions of the
    .NET Framework are installed, examine the subkeys under the following registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy
      

  3.   

    去微软中文网站看看就知道了,有现成的例子。题目好像是“部署NetXXX”