such a simple solution and it worked, thanks for pointing that out! as far as 
using multiple files, my intention is to go away from that. i am making heavy 
use of the preprocessor so i can reuse components making them slightly 
different based on the variables set. thanks again. should i write this up as a 
preprocessor defect or was the intention of the preprocessor to ever work this 
way?~Jeremy


Subject: RE: [WiX-users] wix and the preprocessor...Date: Wed, 19 Mar 2008 
12:24:47 -0400From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: 
wix-users@lists.sourceforge.net






Jeremy,
 
Just for stupidity’s sake, is everything OK if you reverse the order of the 
second test?
 
I.e. the second test would become:
 
<?if $(var.type) = msm ?></module><?elseif $(var.type) = msi 
?></product><?endif ?>
 
Unless I’m missing something, the file would then be “valid” again, since the 
product element is opened before the module element could possibly be, and 
closed after it, maintaining xml requirements.
 
Of course… it is a pretty roundabout way of doing things. The fact that you are 
running into problems may really be suggesting you need to use wix libraries 
instead of msm’s (or wix fragments which are consumed by both independent msi 
and msm wrapper files).
 
Regards,
Richard




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy 
BreidingSent: Wednesday, March 19, 2008 12:17 PMTo: [EMAIL PROTECTED]: 
[WiX-users] wix and the preprocessor...
 
I am currently using the stable 2.0 binaries to build my installer. Currently 
today i have multiple wxs files, 2 for individual msm's and 1 to include those 
msm's to build a few msi's. now, what i would like to do is consolidate down to 
a single wxs and still retain the ability to net the same output. unfortunately 
to date my attempts have failed to pass candle. let me elaborate: my problem is 
actually in the way the <?if><?elseif?><?endif?> are working. heres an example 
of what i would like to do, but for some reason these preprocessor commands 
arent really preprocessor. <?if $(var.type) = msi ?><product><?elseif 
$(var.type) = msm ?><module><?endif ?><package/><?if $(var.type) = msi 
?></product><?elseif $(var.type) = msm ?></module><?endif ?> needless to same 
candle gives me an error something to likes of module start tag does not match 
end tag of product. well i would think that the preprocessor would be able to 
handle making sure the proper tags were insert/deleted based on the conditional 
statements. so i thought maybe i can move the contents of these to include 
files, however include files weren't really meant to be used in this manner. i 
get error that says the product start tag does not match the end tag of 
include. perhaps i am doing something wrong, hopefully someone can shed some 
light on this topic for me. thanks!!~Jeremy



* C O N F I D E N T I A L I T Y N O T I C E 
*-----------------------------------------------------------The content of this 
e-mail is intended solely for the use of the individual or entity to whom it is 
addressed. If you have received this communication in error, be aware that 
forwarding it, copying it, or in any way disclosing its content to any other 
person, is strictly prohibited. Quixote Traffic Corporation is neither liable 
for the contents, nor for the proper, complete and timely transmission of (the 
information contained in) this communication. If you have received this 
communication in error, please notify the author by replying to this e-mail 
immediately and delete the material from any computer.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to