Windows Installer databases are not like a proper relational database such
as SQL Server - they don't have a fixed schema. It's more of a property
database. You can happily insert any amount of data into a column. It's only
subsequent validation that checks against the 'schema' (the _Validation
table) to ensure that the row has the right number, type and size of
columns.
The question, which we don't know the answer to, is whether the engine
correctly handles data that is larger than the declared maximum length. To
be on the safe side I would suggest trying to stick to the declared size
where possible.
If you have common subexpressions you could use conditioned Type 51 Custom
Actions to set a property according to the result of the expression. The
type 51 custom action is the one which sets a property to a formatted text
value, which in WiX looks like:
<CustomAction Property="SubExpr1Result" Value="1" />
And then you schedule that action before you need the result, setting the
action's condition to the subexpression you're trying to eliminate.
--
Mike Dimmick
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Calin Iaru
Sent: 25 January 2008 10:02
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Condition strings that are too long
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?
"
String overflow (greater than length permitted in column); Table:
InstallUISequence, Column: Condition, Key(s): FirewallDlg
"
-------------------------------------------------------------------------
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