Search code examples
.netnsis

NSIS: Find and download .Net Version


How can I get the version of .NET with NSIS? And if I don't have the necessary version, it redirects me to a site to download it.

I've found some solutions to this, but they usually have some hard coded stuff (e.g. dozens of specific links).

Is there some good solution for this?

Thank you

note: I dont want to use windows installer/clickonce.


Solution

  • Take a look here. I believe I've changed some things from the NSIS forums, but this works quite well

    http://stochfit.svn.sourceforge.net/viewvc/stochfit/trunk/StochFitMain/Installer.nsi?revision=108&view=markup