In article <[EMAIL PROTECTED]>,
    "Calin Iaru" <[EMAIL PROTECTED]>  writes:

> Some of the conditions that I write are quite long and they are based on =
> several factors like operating system, service pack, user interface =
> level, features installed, features set to be removed and so on. Or =
> conditions can be broken in several shorter conditions; for instance I =
> could have a Control that is enabled when this happens, and have the =
> Enable condition repeat also when that happens. And conditions cannot =
> however be broken. The reason I am asking about conditions strings is =
> that the MSI file does not pass ICE03. Even if this is a warning, should =
> I strive to make those conditions shorter?

As was mentioned, you can change the schema to allow longer strings.

However, another approach is to just break out common expressions from
your conditions into your own properties.  So instead of repeating
the expression '(VersionNT = 501) AND (WindowsBuild = 2600)' to check
for WindowsXP, you can use a type 51 action (set property) to create
your own property called WindowsXP:

<CustomAction Id="SetWindowsXP" Property="WindowsXP" Value="1">
<InstallExecuteSequence>
        <Custom Action="SetWindowsXP">
                (VersionNT = 501) AND (WindowsBuild = 2600)
        </Custom>
</InstallExecuteSequence>

You would sequence this before any of your conditions that use this
property, naturally.

You can think of this as a "refactoring" for MSI conditions: replace
complex conditions with a named property that reveals your intent in
using the conditional expression.
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
      <http://www.xmission.com/~legalize/book/download/index.html>

        Legalize Adulthood! <http://blogs.xmission.com/legalize/>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to