NSIS Installer with .NET 4.0

前端 未结 2 877
走了就别回头了
走了就别回头了 2021-02-14 01:30

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?

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-14 02:01

    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.

提交回复
热议问题