I think I understand what is going on here. Each wxs file is compiled separately, and for each one, 'MyResourceDefined' is initially undefined, so 'myresource' gets defined. When everything is linked together, I have multiple definitions of the same resource.
Is there some other way I can define a resource (say a vbs utility script file) in one wxi file and avoid duplicate symbols? -chris ________________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Haukap Sent: Thursday, April 10, 2008 10:44 AM To: [email protected] Subject: [WiX-users] ifndef not working as i would expect I am trying to create a wxi file that will define a binary resource as shown below. I want to use ifndef to prevent the binary resource "myresource" from being multiply defined. When I include this wxi file in more than one compiled wxs files, I receive LGHT0091 'duplicate symbols' error in spite of ifndef. It looks like either 'ifndef' or 'define' are not working as I would expect them to... any thoughts? Here is what my wxi file looks like: <?xml version="1.0" encoding="utf-8"?> <Include> <?ifndef MyResourceDefined?> <Binary Id="myresource" SourceFile="myScriptsFile.vbs"/> <?define MyResourceDefined = ""?> <?endif?> </Include> Thanks -chris ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

