Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/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
.net wix捆绑包是否可能有多个条件(bal)?_.net_Wix_Wix Extension_Wix3.8 - Fatal编程技术网

.net wix捆绑包是否可能有多个条件(bal)?

.net wix捆绑包是否可能有多个条件(bal)?,.net,wix,wix-extension,wix3.8,.net,Wix,Wix Extension,Wix3.8,我试图在一个独特的捆绑包中管理不同windows版本的.Net framework安装 为此,我希望有两个不同的条件和两条特定的消息,这比一条针对多种情况的唯一消息更有用 基本上,是否有一种方法可以使两个条件与本规范中的条件一样起作用: <?xml version="1.0" encoding="UTF-8"?> ... <Bundle ...> <bal:Condition Message="Framework .Net 3.5 should be act

我试图在一个独特的捆绑包中管理不同windows版本的.Net framework安装

为此,我希望有两个不同的条件和两条特定的消息,这比一条针对多种情况的唯一消息更有用

基本上,是否有一种方法可以使两个条件与本规范中的条件一样起作用:

<?xml version="1.0" encoding="UTF-8"?>
...
<Bundle ...>
    <bal:Condition Message="Framework .Net 3.5 should be activated by default as a Windows feature for this version of Windows (7). Please (re)activate it.">Installed AND (VersionNT = 601) AND (NOT Netfx35Version)</bal:Condition>
    <bal:Condition Message="Framework .Net 3.5 must be manually activated as a Windows feature for this version of Windows (8).">Installed AND (VersionNT >= 602) AND (NOT Netfx35Version)</bal:Condition>
    <Chain>
        <ExePackage Cache="no" Compressed="yes" DetectCondition="Netfx35Version OR Netfx30Version" Id="Netfx30Redist" InstallCommand="/q /norestart /lang:ENU" InstallCondition="(NOT Netfx35Version AND NOT Netfx30Version) OR (NOT Netfx35Version AND  Netfx30Version AND Netfx30Version &lt; v3.0.4506.30)" PerMachine="yes" Permanent="yes" RepairCommand="/repair /q /norestart /lang:ENU" SourceFile="C:\Users\Bastien\ProjetsRiverside\WorkSpaceJava\Padeo\workdir\webclient\dotnetfx30.exe" UninstallCommand="/uninstal /q /norestart /lang:ENU" Vital="yes">
            <ExitCode Behavior="forceReboot" Value="3010"/>
        </ExePackage>
        <ExePackage InstallCommand="/q:a /c:&quot;msiexec /i vcredist.msi /qn&quot;" Permanent="yes" SourceFile="C:\Users\Bastien\ProjetsRiverside\WorkSpaceJava\Padeo\workdir\webclient\vcredist_x86_2005.exe"/>
        <MsiPackage Permanent="yes" SourceFile="C:\Users\Bastien\ProjetsRiverside\WorkSpaceJava\Padeo\workdir\webclient\PSC-10.2B.msi" Visible="yes"/>
        <MsiPackage SourceFile="C:\Users\Bastien\ProjetsRiverside\WorkSpaceJava\Padeo\workdir\files\XPower\Test102B\1\output\XPower.Test102B.msi" Visible="yes"/>
    </Chain>
    <util:RegistrySearchRef Id="SearchForNet35"/>
    <util:RegistrySearchRef Id="SearchForNet3"/>
</Bundle>

...
已安装和(版本NT=601)和(非NetFX35版本)
已安装和(版本NT>=602)和(非NetFX35版本)

谢谢。

我们使用WiX 3.10工具集构建安装程序,它确实支持
捆绑包的多个
bal:Condition
元素