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:
-------------------------------------------------------- <?if $(var.Project1.TargetDir) ?> <!-- do stuff --> <?endif?> -------------------------------------------------------- if i have the project reference defined this works great, but if i dont it gives a compile error: Error 3 Undefined preprocessor variable '$(var.Project1.TargetDir)'. so i figured i better try like this: -------------------------------------------------------- <?ifdef $(var.Project1.TargetDir) ?> <!-- do stuff --> <?endif?> -------------------------------------------------------- but this returns false even when the project reference is defined. Is there a way to make this work? Thanks, Steve Baker ------------------------------------------------------------------------- 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