Thanks bob, i missed that <?ifdef?> syntax in the help file omits the $(var. )

So now I have broken this down to the simplest example i can think of and still 
seem to be having troubles.

I created a new solution, added one class library and one wix installer 
project. I added a reference to ClassLibrary1 in the wix project.

I added:

<?ifndef ClassLibrary1.TargetDir ?>
    <?error preprocessor definition value: $(var.ClassLibrary1.TargetDir) ?>
<?endif?>

when i try to compile i get this error:

Error    1    preprocessor definition value: 
C:\code\Test\ClassLibrary1\bin\Debug\    

what this tells me is that the check to see if the preprocessor definition 
exists says that it doesn't, but the value is expanded correctly in the error 
statement so it must.

what am i doing wrong ?

Steve Baker

----------------------------------------
From: Bob Arnson <[EMAIL PROTECTED]>
Sent: Thursday, July 17, 2008 5:51 PM
To: [EMAIL PROTECTED],  "General discussion for Windows Installer XML toolset." 
<wix-users@lists.sourceforge.net>
Subject: Re: [WiX-users] Testing for existence of a Project Reference 

Steve Baker wrote:
> I am trying to test if a project reference has been defined from inside a wxi 
> file by testing one of the constants that should be defined like this:
>
> --------------------------------------------------------
> 
>   

$(var.id) is a variable resolution, to expand the id into its variable 
value.  and  are looking for the id itself, so just drop the 
$(var.) portion.

-- 
sig://boB
http://joyofsetup.com/


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to