NSIS Installer with .NET 4.0

£可爱£侵袭症+ 提交于 2019-12-03 11:30:33

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

Something like this should work:

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

Result is in reg $8

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

Why not simply include the .NET 4.0 redist with your NSIS installer and execute it when you don't detect 4.0 registry entries?

If you think that 50 MB is too much to package with your installer then download it only when needed.

It would help if you listed what you've tried that has not worked. (I suspect that you've probably seen the 3rd link and the lang spec trips you up?)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!