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 (eg dozens of specific links).
Is there some good solution for this?
Thank you
note: I dont want to use windows installer/clickonce.
There is no singular version of .NET. You could have 2.0 installed but not 1.1, or vice versa; you could have 3.5 installed which would include 2.0 and 3.0; etc. So you can't, in that sense, check for the version. Instead, you should probably check whether the particular version you need exists.
mscorlib.dll
exists for each of them. Take a look here. I believe I've changed some things from the NSIS forums, but this works quite well
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.