PDA

View Full Version : .Net Framework 2 on XP ServicePack 3



glewis64
01-27-2010, 10:43 AM
In looking into .Net version 2 core prerequisit script(rt_dotnetframework2_x86.sbi), why is it only installing on WindowsXP if ServicePack=2? I'm on ServicePack 3. Some of my customers may not even be on ServicePack 2.

linder
01-27-2010, 11:35 AM
Ask Microsoft <g>. XP SP3 is not officially supported.

"Supported Operating Systems: Windows 2000 Service Pack 4; Windows Server 2003; Windows XP Service Pack 2"

But you can open your "rt_dotnetframework2_x86.sbi" include script and change Line 80:

from:

If %SERVICEPACKNUMBER% Does Not Equal "2" Then

to:

If %SERVICEPACKNUMBER% Greater Than or Equal "2" Then

Does this help?

Friedrich

glewis64
01-27-2010, 11:43 AM
Yes it does!

BTW, I had to change it to: If %SERVICEPACKNUMBER% Less Than "2" Then

Thank you for your help.

linder
01-27-2010, 11:52 AM
"Less Than 2" means in this case it will only install for XP (SP0) and SP1. But not for XP SP2 and above!

Friedrich

glewis64
01-27-2010, 12:26 PM
Maybe I'm missing something, but here is my thinking.

1. Framework 2 service pack 1, which is what your redistributable is, requires XP Service Pack 2.
2. Line 80 used to be: If %SERVICEPACKNUMBER% Does Not Equal 2 Then ... Don't Install the framework.
3. I'm on Service Pack 3, I want it to install for any service pack 2 and above, thus If %SERVICEPACKNUMBER% Less Than 2 Then ... Don't Install the framework.

Am I all wet?

linder
01-28-2010, 05:06 AM
Too much coffee or not enough <g> Of course, you are right. If you want it to install for any service pack 2 and above, you have to use:

If %SERVICEPACKNUMBER% Less Than 2 Then
! Don't Install the framework
End

Sorry for the confusion!

Friedrich