|
|
#1 |
|
Junior Member
|
checking .NET versions
Hi
I have been using the .NET script that checks for .NET installed, and it works just fine. However as .NET 1.1 is now out - the script does not check for differnet versions :-) ... would someone mind updating the script so it can check for 1.1 as well as 1.0. Sorry its a little beyond my skills to change. Also in case people are planning on doing this, I have found that using GACutil.exe to put .NET components into the global assembly cache works just fine in NSIS. ;-) Thanks DabossUK |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
I don't think it will be too hard to add a check for a minial version in the script. If you add and upload it here I'll update the archive page.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
|
Hey
Sorry, but changing that code is a little over my skill level. Still do not funny understand all the functions. However, I scrapped the .NET script (for some reason the version is NOT stored in the registry from what I can see. So I have used this method instead. Does the job so guess thats ok ;-) ? IfFileExists $WINDIR\Microsoft.NET\Framework\v1.1.4322\*.* abort MessageBox MB_YESNO|MB_ICONEXCLAMATION "Service requires the Microsoft .NET Framework 1.1 to run. $\r$\nThe installer cannot find a version installed on this machine. $\r$\n Do you wish to install from the Internet ? $\r$\nIf not please install .NET Framework and rerun the installer." IDYES +1 IDNO Abort2 ExecShell open http://msdn.microsoft.com/netframewo...s/howtoget.asp Abort |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
That may not work if the directory is
v1.1.4323 or something slightly different. You should find the directory that is v1.1* using FindFirst/Next: code: |
|
|
|
|
|
#5 |
|
NSIS Dev
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 455
|
Of course, this solution won't work once .NET 1.2 is released.
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Apr 2004
Posts: 7
|
Can someone post the full script on how to check if 1.1 is intalled
|
|
|
|
|
|
#7 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
See above.
|
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Apr 2004
Posts: 7
|
i'm no good with coding there any change u code cut and paste me together a scrip and tell me where to stick it in the nsi file
|
|
|
|
|
|
#9 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
Put it in a section or function where you need to know the version.
|
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Apr 2004
Posts: 7
|
how?
|
|
|
|
|
|
#11 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
I have no idea what you mean. This is normal NSIS script code. If you don't know the script langauge you'll have to learn it first.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|