如何跳过一个引导程序或忽略失败,在Windows 8? [英] How to skip a bootstrapper or ignore fail in Windows 8?

查看:213
本文介绍了如何跳过一个引导程序或忽略失败,在Windows 8?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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:

  1. 请不要试图安装时,操作系统为Windows 8,或者
  2. 尝试,但忽略了一个失败,继续下一步

任何想法?

推荐答案

我想通了这一点通过试验和错误,我会把这里的解决方案为别人谁可能会发现它很有用。问题是我使用 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/>

这篇关于如何跳过一个引导程序或忽略失败,在Windows 8?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆