我有一个WiX的安装程序和一些bootstrappers的。我们最近增加了SQL的LocalDB支持和发现我们需要包装的.Net 4.0.2得到它的工作。我现在测试在Windows 8上,发现这个补丁失败,是不是真的需要这个操作系统。
I have a WiX installer and a number of bootstrappers. We recently added SQL LocalDB support and found we needed to package .Net 4.0.2 to get it to work. I am now testing on Windows 8, and find that this patch fails and isn't actually needed for this OS.
然而,由于净4.0.2失败我安装失败。我试图找到或者跳过这个补丁在Windows 8或只是忽略一个失败的这个补丁的方法吗?
However, my installer fails because .Net 4.0.2 fails. I am trying to find a way of either skipping this patch in Windows 8 or just ignoring a fail for this patch?
我有 InstallConditions
和退出codeS
我的 package.xml
,但我不知道如何改变这些实现可以:
I have "InstallConditions
" and "ExitCodes
" in my package.xml
, but I don't know how to change these to achieve either:
任何想法?
我想通了这一点通过试验和错误,我会把这里的解决方案为别人谁可能会发现它很有用。问题是我使用 ValueGreaterThanOrEqualTo
键,它应该是 VersionGreaterThanOrEqualTo
I figured this out by trial and error, and I'll put the solution here for others who might find it useful. The problem was I was using ValueGreaterThanOrEqualTo
and it should have been VersionGreaterThanOrEqualTo
这将跳过Windows 8的
This will skip for Windows 8
< BypassIf属性=VersionNT比较=VersionGreaterThanOrEqualToVALUE =6.2/>
这将跳过Windows 7和8
This will skip for Windows 7 and 8
< BypassIf属性=VersionNT比较=VersionGreaterThanOrEqualToVALUE =6.1/>