Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wix安装程序-检查windows 2012 R2是否可用_Windows_Wix_Windows Installer_Version - Fatal编程技术网

Wix安装程序-检查windows 2012 R2是否可用

Wix安装程序-检查windows 2012 R2是否可用,windows,wix,windows-installer,version,Windows,Wix,Windows Installer,Version,需要检查msi是否使用R2在Windows Server 2012上运行。因此,如果它在服务器2012上运行-错误。如果它在windows 8上运行-确定。如果它在2008年的任何服务器上运行-正常 我尝试了以下条件,但在Win8上也显示了错误,为什么 <Condition Message='This application only runs on Windows Server 2012 R2 or higher'> NOT VersionNT = 602 AND MsiNTP

需要检查msi是否使用R2在Windows Server 2012上运行。因此,如果它在服务器2012上运行-错误。如果它在windows 8上运行-确定。如果它在2008年的任何服务器上运行-正常

我尝试了以下条件,但在Win8上也显示了错误,为什么

<Condition Message='This application only runs on Windows Server 2012 R2 or higher'>
  NOT VersionNT = 602 AND MsiNTProductType > 1
</Condition>

不是VersionNT=602且MsiNTProductType>1

正如您所发现的,您对和属性感兴趣

但是,启动条件使用肯定语法——您可以指定有效的条件。您的评论答案中的
不是
,这将导致Windows Server 2012的安装程序失败,并继续执行其他所有操作

还要注意的是,Windows Server 2012 R2的版本是6.03,而不是6.02

仅适用于Windows Server 2012 R2,您需要:

<Condition Message="This application only runs on Windows Server 2012 R2 or higher">
    <![CDATA[VersionNT>=603 AND MsiNTProductType=3]]>
</Condition>
对于Windows Server 2012、Windows 8和Windows Server 2008:

<Condition Message="This application only runs on...">
    <![CDATA[VersionNT>=602 OR (VersionNT>=600 AND MsiNTProductType=3)]]>
</Condition>

=602或(VersionNT>=600和MsiNTProductType=3)]]>

正如您所发现的,您对和属性感兴趣

但是,启动条件使用肯定语法——您可以指定有效的条件。您的评论答案中的
不是
,这将导致Windows Server 2012的安装程序失败,并继续执行其他所有操作

还要注意的是,Windows Server 2012 R2的版本是6.03,而不是6.02

仅适用于Windows Server 2012 R2,您需要:

<Condition Message="This application only runs on Windows Server 2012 R2 or higher">
    <![CDATA[VersionNT>=603 AND MsiNTProductType=3]]>
</Condition>
对于Windows Server 2012、Windows 8和Windows Server 2008:

<Condition Message="This application only runs on...">
    <![CDATA[VersionNT>=602 OR (VersionNT>=600 AND MsiNTProductType=3)]]>
</Condition>

=602或(VersionNT>=600和MsiNTProductType=3)]]>

正如您所发现的,您对和属性感兴趣

但是,启动条件使用肯定语法——您可以指定有效的条件。您的评论答案中的
不是
,这将导致Windows Server 2012的安装程序失败,并继续执行其他所有操作

还要注意的是,Windows Server 2012 R2的版本是6.03,而不是6.02

仅适用于Windows Server 2012 R2,您需要:

<Condition Message="This application only runs on Windows Server 2012 R2 or higher">
    <![CDATA[VersionNT>=603 AND MsiNTProductType=3]]>
</Condition>
对于Windows Server 2012、Windows 8和Windows Server 2008:

<Condition Message="This application only runs on...">
    <![CDATA[VersionNT>=602 OR (VersionNT>=600 AND MsiNTProductType=3)]]>
</Condition>

=602或(VersionNT>=600和MsiNTProductType=3)]]>

正如您所发现的,您对和属性感兴趣

但是,启动条件使用肯定语法——您可以指定有效的条件。您的评论答案中的
不是
,这将导致Windows Server 2012的安装程序失败,并继续执行其他所有操作

还要注意的是,Windows Server 2012 R2的版本是6.03,而不是6.02

仅适用于Windows Server 2012 R2,您需要:

<Condition Message="This application only runs on Windows Server 2012 R2 or higher">
    <![CDATA[VersionNT>=603 AND MsiNTProductType=3]]>
</Condition>
对于Windows Server 2012、Windows 8和Windows Server 2008:

<Condition Message="This application only runs on...">
    <![CDATA[VersionNT>=602 OR (VersionNT>=600 AND MsiNTProductType=3)]]>
</Condition>

=602或(VersionNT>=600和MsiNTProductType=3)]]>

我找到了一种验证WS2012 R2的方法,如果仍然帮助某人:

    <![CDATA[(VersionNT64 = 603 AND MsiNTProductType <> 1)]]>
1)]]>

我找到了一种验证WS2012 R2的方法,如果仍然帮助某人:

    <![CDATA[(VersionNT64 = 603 AND MsiNTProductType <> 1)]]>
1)]]>

我找到了一种验证WS2012 R2的方法,如果仍然帮助某人:

    <![CDATA[(VersionNT64 = 603 AND MsiNTProductType <> 1)]]>
1)]]>

我找到了一种验证WS2012 R2的方法,如果仍然帮助某人:

    <![CDATA[(VersionNT64 = 603 AND MsiNTProductType <> 1)]]>
1)]]>

发现了相同的问题:1]]>!相同的问题:1)]]>已找到!相同的问题:1)]]>已找到!相同的问题:1)]]>已找到!另请参阅此SO帖子,了解如何在使用引导程序时为Windows 8.1和Windows Server 2012 R2获取正确的
VersionNT
属性:请参阅此SO帖子,了解如何在使用引导程序时为Windows 8.1和Windows Server 2012 R2获取正确的
VersionNT
属性:请参阅此SO帖子关于在使用引导程序时为Windows 8.1和Windows Server 2012 R2获取正确的
VersionNT
属性:另请参阅此SO帖子,了解在使用引导程序时为Windows 8.1和Windows Server 2012 R2获取正确的
VersionNT
属性: