问题描述
我使用InstallShield2010制作安装包。安装必备的选择:.net3.5sp1和.net4.0在xp系统上没有.net2.0以上的框架,会安装.net3.5sp1,但是.net4.0的就是不提示。Microsoft.NETFramework4.0.Full.prq文件内容如下:<?xmlversion="1.0"encoding="UTF-8"?><SetupPrereq><conditions><conditionType="2"Comparison="2"Path="HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/NETFrameworkSetup/NDP/v4/Full"FileName="Install"ReturnValue="1"></condition></conditions><operatingsystemconditions><operatingsystemconditionMajorVersion="5"MinorVersion="1"PlatformId="2"CSDVersion=""Bits="1"ProductType="1"ServicePackMajorMin="2"></operatingsystemcondition><operatingsystemconditionMajorVersion="5"MinorVersion="2"PlatformId="2"CSDVersion=""ProductType="2|3"></operatingsystemcondition><operatingsystemconditionMajorVersion="5"MinorVersion="2"PlatformId="2"CSDVersion=""Bits="2"ProductType="1"></operatingsystemcondition><operatingsystemconditionMajorVersion="6"MinorVersion="0"PlatformId="2"CSDVersion=""ProductType="2|3"></operatingsystemcondition><operatingsystemconditionMajorVersion="6"MinorVersion="0"PlatformId="2"CSDVersion=""></operatingsystemcondition><operatingsystemconditionMajorVersion="6"MinorVersion="1"PlatformId="2"CSDVersion=""></operatingsystemcondition></operatingsystemconditions><files><fileLocalFile="<ISProductFolder>SetupPrerequisitesMicrosoft.net4.0dotNetFx40_Full_x86_x64.exe"CheckSum="251743DFD3FDA414570524BAC9E55381"FileSize="0,50449456"></file></files><executefile="dotNetFx40_Full_x86_x64.exe"cmdline="/pdotNetFx40_Full_x86_x64.exe/l1033/v"/q/norestart""cmdlinesilent="/pdotNetFx40_Full_x86_x64.exe/l1033/v"/q/norestart""returncodetoreboot="1641,3010"requiresmsiengine="1"></execute><dependencies><dependencyFile="<ISProductFolder>SetupPrerequisitesMicrosoft.NETFramework4.0.Full.prq"></dependency></dependencies><propertiesId="{A53CD5DD-317C-4CDB-9977-E6BF79D80A0A}"Description="Thisprerequisiteinstallsthe.net4.0frameworkfor32-bit(x86)systems."AltPrqURL="http://saturn.installshield.com/is/prerequisites/microsoft.netframework4.0.prq"></properties><behaviorReboot="16"></behavior></SetupPrereq>
解决方案
解决方案二:
XP要SP3才支持.net4.0
解决方案三:
引用1楼juckxu的回复:
XP要SP3才支持.net4.0
我在虚拟机上装的新Xp,我看了有sp3.我在想.net4.0是不是还要装别的什么???
解决方案四:
引用2楼u012488787的回复:
Quote: 引用1楼juckxu的回复:
XP要SP3才支持.net4.0我在虚拟机上装的新Xp,我看了有sp3.我在想.net4.0是不是还要装别的什么???
不用装其他的
解决方案五:
实在不行,就提前安装吧。折腾好几天了。