English 中文(简体)
B. 支持不同的方案 WiX的后遗行为3.5
原标题:Supporting different AfterBuild behaviors in WiX 3.5

我毫不迟疑地找不到有关支持目标多重条件的信息。 具体来说,根据项目组合,我喜欢<代码>AfterBuild做不同的事情。

例如,如果我的项目组合是A,如果我的项目组合是B,那么我就希望进行批次。 我的维X项目档案有以下目标:

<Target Name="AfterBuild" Condition=" $(Configuration) == A ">
    <Exec Command="c:installersa.bat" />
</Target>
<Target Name="AfterBuild" Condition=" $(Configuration) == B ">
    <Exec Command="c:installers.bat" />
</Target>

现在,在座的维X专家已经知道,这并不奏效。 虽然WiX在汇编和执行时将尊重最后一个<代码>的愿望。 缩略语 具体目标。 我对使用<代码>< Conditions>在Target内的信息进行了研究,但认为这只适用于其他内容。

谁能提出正确的XML语言来支持目标中的多重条件?

EDIT——或许唯一的答案是将美元(建筑)作为论据,然后让批量记录东西?

最佳回答

我感到.。 不仅有<条码>有条件/代码>属性<条码>,而且你也可以使用<条码>Exec(以及我正在使用的<条码>/代码>等其他文本)。 因此,你只得在<代码>AfterBuild内设置多个<代码>和>;和<Copy>各项内容。 具体目标是行之有效的。

问题回答

暂无回答




相关问题
Correct place to install demostration projects?

With the new Windows 7 restrictions (well, new to Windows Vista anyways), we can no longer install demo projects to %ProgramFilesFolder%OurApplicationdemo since restricted users will not be able to ...

msi install program as startup

is it possible to install a program as a start up program using MSI installer?

Web Setup Project - Repair to overwrite files

I have a web setup project that creates an MSI. After first installation, my web site has some config files that can be modify manually. When triggering that MSI again, I am offered to repair the ...

Visual Studio Setup Projects: Cleartype

I use a Visual Studio Setup project to create an installer for some assemblies. However, the fonts the installer uses are always aliased, and don t appear to be the Windows standard. (source: ...

Implementing Update functionality

I want to implement the Update functionality for one of my .NET application. I saw that the Advanced Installer contains this functionality. Anybody recommends Advanced Installer for updating my ...

VS 2005 Setup - HKCU

I am trying to fix an existing application that uses a Visual Studio 2005 setup project. We are requiring it to work on limited user accounts for XP, our app is written in C# for .Net 2.0. It writes ...

热门标签