NSIS安装程序使用.NET 4.0 [英] NSIS Installer with .NET 4.0

查看:299
本文介绍了NSIS安装程序使用.NET 4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一个标准/ preferred方法自动下载和从NSIS安装程序安装.NET 4.0框架,如果机器已经没有了吗?

Is there a standard/preferred method for automatically downloading and installing the .NET 4.0 Framework from an NSIS installer, if the machine doesn't already have it?

有用于制作在旧版本的框架这项工作的几个例子,但似乎没有人对4.0工作。在我砍的东西在一起我自己,我想看看是否有人在这里知道的东西已经在那里。

There are several examples for making this work on older versions of the framework, but seemingly none of them work for 4.0. Before I hack something together myself, I wanted to see if anyone here knew of something already out there.

感谢您的时间。

推荐答案

这是什么问题?溶液应是相同的任何其他.NET版本

What is the problem? The solution should be the same as for any other .NET version.

这样的事情应该工作:

ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client" Install
IntOp $8 $0 & 1

结果是寄存器$ 8个

Result is in reg $8

替换客户端完整来检测非客户端版本。

Substitute Client with Full to detect the non-client version.

这篇关于NSIS安装程序使用.NET 4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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