On 2/20/07, Bob Arnson <[EMAIL PROTECTED]> wrote:
> Johan Appelgren wrote:
> > I don't think WixVariables works for what I'm trying to do. If I try
> > to use a wix variable candle fails with an error that states that only
> > integers are valid values for the Control/@Width attribute. Could I be
> > doing this the wrong way somehow?
> >
>
> Could you show your syntax? If loc variables work, I'd expect bind-time
> variables to work too. BTW, I'm talking about <WixVariable> in WiX v3.
> I'd expect preprocessor variables to work too; if they don't, it's
> probably a bug.

What I did to try using a WixVariable was adding the following to the
fragment in Common.wxs as default values for the variables.

        <WixVariable Id="WixUIDialogTextWidth" Value="220" Overridable="yes" />
        <WixVariable Id="WixUIDialogBitmapWidth" Value="135"
Overridable="yes" />

And then in the dialogs that have a sidebar bitmap I changed the
Control/@X and Control/@Width attributes. For example the Title in
FatalError.wxs.

        <Control Id="Title" Type="Text"
X="!(wix.WixUIDialogBitmapWidth)" Y="20"
Width="!(wix.WixUIDialogTextWidth)" Height="60" Transparent="yes"
NoPrefix="yes" Text="!(loc.FatalErrorTitle)" />

I'm probably doing this wrong since it doesn't work.

   [candle] src\ext\uiextension\wixlib\FatalError.wxs(24) : error
CNDL0008 : The Control/@X attribute's value,
'!(wix.WixUIDialogBitmapWidth)', is not a legal integer value.  Legal
integer values are from -2,147,483,648 to 2,147,483,647.
   [candle] src\ext\uiextension\wixlib\FatalError.wxs(24) : error
CNDL0008 : The Control/@Width attribute's value,
'!(wix.WixUIDialogTextWidth)', is not a legal integer value.  Legal
integer values are from -2,147,483,648 to 2,147,483,647.
   [candle] src\ext\uiextension\wixlib\FatalError.wxs(24) : error
CNDL0010 : The Control/@Width attribute was not found; it is required.
   [candle] src\ext\uiextension\wixlib\FatalError.wxs(24) : error
CNDL0010 : The Control/@X attribute was not found; it is required.

/Johan

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to