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

Reply via email to