1.  That isn't true.  <?include?> essentially makes one big file.  This should 
work.

2.  Try getting the output after preprocessing and see what the variables look 
like.  Most likely something isn't what you think it is:

        candle your.wxs -p


-----Original Message-----
From: Yan Sklyarenko [mailto:y...@sitecore.net]
Sent: Friday, January 16, 2009 01:53
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] [Votive] [WiX v3.0.4909.0] <?Include ...?> is ignored

It seems that the custom variables defined in a certain file can be
referenced within this file only.
If you want to have a global variable to reference throughout your
project, define it as a parameter to candle.exe (or, if you're using VS,
right-click your project, choose Properties, switch to the 'Build' tab
and fill in the preprocessor variables accordingly).

-- Yan


-----Original Message-----
From: giuseppelippo...@libero.it [mailto:giuseppelippo...@libero.it]
Sent: Friday, January 16, 2009 11:36 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] [Votive] [WiX v3.0.4909.0] <?Include ...?> is
ignored

I have created sample project with votive for VS 2008.
The project contain 2

files

Common.wxi

<?xml version="1.0" encoding="utf-8"?>
<Include>
  <?define

Test="Test"?>
</Include>

Product.wxs
<?xml version="1.0" encoding="UTF-8"?>
<?

Include Common.wxi?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>


<Product Id="1e3762c3-c518-44c5-ae45-73969ab6c515" Name="WixProject1"
Language="
1033" Version="1.0.0.0" Manufacturer="WixProject1" UpgradeCode="
344c9917-4653-
4a39-b2d5-82215e0a390b">
<Package InstallerVersion="200"
Compressed="yes" />


<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />


<Directory Id="
TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder"
>

<Directory Id="INSTALLLOCATION" Name="$(var.Test)">
<!-- TODO: Remove the

comments around this Component element and the ComponentRef below in
order to

add resources to this installer. -->
<!-- <Component Id="ProductComponent"

Guid="c85a7357-6130-4566-bddf-7e49f327940c"> -->
<!-- TODO: Insert files,

registry keys, and other resources here. -->
<!-- </Component> -->


<Component Id="CreateDir" Guid="{8FF9E57E-0C3E-41e2-8994-
E1AF0EE9D986}">

            <CreateFolder/>
          </Component>

</Directory>
</Directory>

</Directory>

<Feature Id="ProductFeature"
Title="WixProject1" Level="1">
<!--
TODO: Remove the comments around this
ComponentRef element and the Component
above in order to add resources to this
installer. -->
<!-- <ComponentRef Id="
ProductComponent" /> -->

<ComponentRef Id="CreateDir"/>
</Feature>

</Product>
</Wix>

When i build
project
Candle raise this error:
Error 3
Undefined preprocessor variable '$(var.
Test)'. C:\...\Product.wxs 14 1
WixProject1



------------------------------------------------------------------------
------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to