Creating a future proof .NET 3.5 SP1 installer prerequisite for setup.exe AND the .MSI

Posted by Ruben Bartelink on Stack Overflow See other posts from Stack Overflow or by Ruben Bartelink
Published on 2009-01-21T16:11:57Z Indexed on 2010/04/14 7:03 UTC
Read the original article Hit count: 448

I've demanded .NET 3.5 SP1 a la http://stackoverflow.com/questions/88136/will-a-vs2008-setup-project-update-net-3-5-sp1. This makes the setup.exe check correctly.

I've also added a "SP1" launch condition to my MSI so it doesn't let the user install my .NET 3.5SP1 app via launching the MSI (and replaced the [VSDNETMSG] in the Framework condition message with one that actually mentions SP1).

From a future proofing point of view, this feels wrong. I want the condition to be:

(NETVer=3.5 AND Net35SPLevel=1) OR (NETVer=>3.5)

not

(NETVer=3.5 AND Net35SPLevel=1)

Is there any way to do that? The framework check doesnt have a condition property to allow me to add a sub-condition...

Yes, I could also just not worry my pretty little head about it :P

If one of the MS versioning experts out there reads this, if you're going to put stuff that code depends on into SPs, can you please make the installer be able to check for it OOTB.

(I really wish they had come up with a better numbering scheme - the world and its dog could see that this was going to get confusing)

© Stack Overflow or respective owner

Related posts about msi

Related posts about .net-3.5-sp1