I would like to use a WixVariable for things such as my product name and 
version, package description, comments.

Looking at the WixVariable element it seems it can have these parents: 
Fragment, Module, Product.

When I try declaring my WixVariable's as child elements of Product before my 
package I get a schema validation error:

error CNDL0107: Schema validation failed with the following error: The element 
'Product' in namespace 'http://schemas.microsoft.com/wix/2006/wi' has invalid 
child element 'WixVariable' in namespace 
'http://schemas.microsoft.com/wix/2006/wi'. List of possible elements expected: 
'Package'.

I then tried creating a separate.wxs file containing a <Fragment> along with my 
variables.  This didn't work.

Is there a way to make my variables work for the Products and Packages?  
Ideally I would like to be able to declare these variables under the <Wix> 
element.  If this can't be done it seems the documentation should be updated.  
I couldn't find examples of using WixVariables in the documentation.

Something like this would be nice.
<WixVariable Id="CompanyName" Value="Acme" />

<Directory Id="CompanyDirectory"  Name="!(wix.CompanyName)" />

Keep up the great work!

--dave
__________________
David S Smith
Urban Science- Junior Software Developer
200 Renaissance Center - 18th Floor
Detroit, MI 48243
Phone: (313) 263-3661
[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to