You need to ?include the wxi in every wix file that uses things defined
in it.

Dave

-----Original Message-----
From: pcristini [mailto:pcrist...@paretoplatform.com] 
Sent: 14 September 2010 19:51
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Undefined Preprocessor Variable


I'm getting an "Undefined preprocessor variable
'$(var.AppRegistryPath)'." in
one of my wxs files.

Inside the main Product.wxs I include the config file like so:


        <?include $(sys.CURRENTDIR)\Product.Config.wxi?>
        

This file includes a bunch of defined variables:
        <?define AppCode = "!(loc.APPNAME)" ?>
        <?define AppManufacturer = "MyCompany" ?>
        <?define AppProductCode =
"{7c710300-5ce2-4ecb-ac02-609620aa28e2}" ?>
        <?define AppRegistryPath =
"Software\$(var.AppManufacturer)\$(var.AppCode)"
?>

I'm trying to use the variable in the main Product.wxs file and a couple
other referencing wxs files like this:
        

Any ideas why this value would not be working?
-- 
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Undefined-
Preprocessor-Variable-tp5531578p5531578.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------
------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
</pre>
<BR style="font-size:4px;">
<a href = "http://www.sdl.com";><img src="http://www.sdl.com/images/email 
logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a>
<BR>
<font face="arial"  size="2"><a href = "http://www.sdl.com"; 
style="color:005740; font-weight: bold">www.sdl.com</a></font>
<BR>
<BR>
<font face="arial"  size="1" color="#736F6E">
<b>SDL PLC confidential, all rights reserved.</b>
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.<BR>
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.<BR>
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.
</font>



------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to