Using Wix to create 32bit and 64bit installers from one .wxs file

后端 未结 2 1730
暖寄归人
暖寄归人 2020-12-13 09:40

I would like to keep my top level .wxs DRY while building 32 and 64 bit installers. I am using the -arch argument to candle.exe to control what default installer architectur

2条回答
  •  渐次进展
    2020-12-13 09:59

    I had this problem with WiX 3.7. It was a tiny installer and I did not need the flexibility of variables so I hid the closing Directory tag from the parser by wrapping it in the same way as the opening tag:

    
        
    
        
    
    

    ...

    
    

    It's a hack, but it worked for my use case.

提交回复
热议问题