Using Wix to create 32bit and 64bit installers from one .wxs file
Rather than conditionally including the opening Directory elements (which invalidates the XML), conditionally set preprocessor variables which are used as directory names, as @Daniel Pratt’s comment refers to. Similarly, having a “yes/no” variable conditioned on platform makes it easy to set up 64 bit components, registry searches, etc. Defining the variables (From this answer) <?if … Read more